mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-10-31 22:44:32 +01:00
[common] simplify the use of _extract_m3u8_formats and _extract_f4m_formats
This commit is contained in:
parent
2db772b9ea
commit
8d29e47f54
@ -885,7 +885,7 @@ class InfoExtractor(object):
|
|||||||
fatal=fatal)
|
fatal=fatal)
|
||||||
|
|
||||||
if manifest is False:
|
if manifest is False:
|
||||||
return manifest
|
return []
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
manifest_version = '1.0'
|
manifest_version = '1.0'
|
||||||
@ -956,7 +956,7 @@ class InfoExtractor(object):
|
|||||||
errnote=errnote or 'Failed to download m3u8 information',
|
errnote=errnote or 'Failed to download m3u8 information',
|
||||||
fatal=fatal)
|
fatal=fatal)
|
||||||
if res is False:
|
if res is False:
|
||||||
return res
|
return []
|
||||||
m3u8_doc, urlh = res
|
m3u8_doc, urlh = res
|
||||||
m3u8_url = urlh.geturl()
|
m3u8_url = urlh.geturl()
|
||||||
last_info = None
|
last_info = None
|
||||||
|
Loading…
Reference in New Issue
Block a user