From: Sergey M․ Date: Sun, 3 Jan 2021 00:57:12 +0000 (+0700) Subject: [nrk] PEP 8 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1aaee908b9ba12fc363c65daa2ef7d1690472a13;p=youtube-dl [nrk] PEP 8 --- diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py index 48387420c..2873d7938 100644 --- a/youtube_dl/extractor/nrk.py +++ b/youtube_dl/extractor/nrk.py @@ -247,9 +247,11 @@ class NRKIE(NRKBaseIE): episode = alt_title if is_series else None episode_number = int_or_none(self._search_regex( r'^(\d+)\.', episode or '', 'episode number', - default=None)) or int_or_none(self._search_regex( - r'\((\d+)\s*:\s*\d+\)', description or '', 'episode number', default=None)) + if not episode_number: + episode_number = int_or_none(self._search_regex( + r'\((\d+)\s*:\s*\d+\)', description or '', + 'episode number', default=None)) info.update({ 'title': title, 'series': series,