[nrk] PEP 8
authorSergey M․ <dstftw@gmail.com>
Sun, 3 Jan 2021 00:57:12 +0000 (07:57 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 3 Jan 2021 00:57:12 +0000 (07:57 +0700)
youtube_dl/extractor/nrk.py

index 48387420c7a2e80df6c7bd52a7c8579f078ce432..2873d79380f8df9ac70d4ea58d1a2903aa854697 100644 (file)
@@ -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,