0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[common] simplify the use of _extract_m3u8_formats and _extract_f4m_formats

This commit is contained in:
remitamine 2015-12-27 15:33:39 +01:00
parent 2db772b9ea
commit 8d29e47f54

View file

@ -885,7 +885,7 @@ def _extract_f4m_formats(self, manifest_url, video_id, preference=None, f4m_id=N
fatal=fatal)
if manifest is False:
return manifest
return []
formats = []
manifest_version = '1.0'
@ -956,7 +956,7 @@ def _extract_m3u8_formats(self, m3u8_url, video_id, ext=None,
errnote=errnote or 'Failed to download m3u8 information',
fatal=fatal)
if res is False:
return res
return []
m3u8_doc, urlh = res
m3u8_url = urlh.geturl()
last_info = None