logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 1aaee908b9ba12fc363c65daa2ef7d1690472a13
parent b2d9fd9c9f7d4b9f6b6bebbbb8f7e799cb08d4b3
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun,  3 Jan 2021 07:57:12 +0700

[nrk] PEP 8

Diffstat:

Myoutube_dl/extractor/nrk.py6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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,