[nrk] PEP 8

pull/27650/head
Sergey M․ 2021-01-03 07:57:12 +07:00
parent b2d9fd9c9f
commit 1aaee908b9
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 4 additions and 2 deletions

View 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,