[nrk] PEP 8
This commit is contained in:
parent
b2d9fd9c9f
commit
1aaee908b9
|
@ -247,9 +247,11 @@ class NRKIE(NRKBaseIE):
|
||||||
episode = alt_title if is_series else None
|
episode = alt_title if is_series else None
|
||||||
episode_number = int_or_none(self._search_regex(
|
episode_number = int_or_none(self._search_regex(
|
||||||
r'^(\d+)\.', episode or '', 'episode number',
|
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))
|
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({
|
info.update({
|
||||||
'title': title,
|
'title': title,
|
||||||
'series': series,
|
'series': series,
|
||||||
|
|
Loading…
Reference in New Issue