diff options
author | Sergey M․ <dstftw@gmail.com> | 2021-01-03 07:57:12 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2021-01-03 07:57:12 +0700 |
commit | 1aaee908b9ba12fc363c65daa2ef7d1690472a13 (patch) | |
tree | 5632e158a92616678c3fdcb49240be63a87abac4 | |
parent | b2d9fd9c9f7d4b9f6b6bebbbb8f7e799cb08d4b3 (diff) |
[nrk] PEP 8
-rw-r--r-- | youtube_dl/extractor/nrk.py | 6 |
1 files changed, 4 insertions, 2 deletions
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, |