mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
flake8
This commit is contained in:
parent
974aaa407b
commit
6586c71c70
@ -134,9 +134,9 @@ class RoosterTeethIE(InfoExtractor):
|
|||||||
parts = line.split(',')
|
parts = line.split(',')
|
||||||
for part in parts:
|
for part in parts:
|
||||||
if 'LANGUAGE' in part:
|
if 'LANGUAGE' in part:
|
||||||
lang = part[part.index('=')+2:-1]
|
lang = part[part.index('=') + 2:-1]
|
||||||
elif 'URI' in part:
|
elif 'URI' in part:
|
||||||
uri = part[part.index('=')+2:-1]
|
uri = part[part.index('=') + 2:-1]
|
||||||
res = self._download_webpage_handle(
|
res = self._download_webpage_handle(
|
||||||
uri, display_id,
|
uri, display_id,
|
||||||
'Downloading m3u8 information',
|
'Downloading m3u8 information',
|
||||||
@ -145,7 +145,7 @@ class RoosterTeethIE(InfoExtractor):
|
|||||||
doc, _ = res
|
doc, _ = res
|
||||||
for l in doc.split('\n'):
|
for l in doc.split('\n'):
|
||||||
if not l.startswith('#'):
|
if not l.startswith('#'):
|
||||||
subtitles[lang] = [{'url':uri[:-uri[::-1].index('/')]+l}]
|
subtitles[lang] = [{'url': uri[:-uri[::-1].index('/')] + l}]
|
||||||
break
|
break
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user