forked from minhngoc25a/yt-dlc
[common] Add note and errnote field for _extract_m3u8_formats
This commit is contained in:
parent
b26733ba7f
commit
621ed9f5f4
|
@ -846,7 +846,7 @@ class InfoExtractor(object):
|
||||||
|
|
||||||
def _extract_m3u8_formats(self, m3u8_url, video_id, ext=None,
|
def _extract_m3u8_formats(self, m3u8_url, video_id, ext=None,
|
||||||
entry_protocol='m3u8', preference=None,
|
entry_protocol='m3u8', preference=None,
|
||||||
m3u8_id=None):
|
m3u8_id=None, note=None, errnote=None):
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
'format_id': '-'.join(filter(None, [m3u8_id, 'meta'])),
|
'format_id': '-'.join(filter(None, [m3u8_id, 'meta'])),
|
||||||
|
@ -865,8 +865,8 @@ class InfoExtractor(object):
|
||||||
|
|
||||||
m3u8_doc = self._download_webpage(
|
m3u8_doc = self._download_webpage(
|
||||||
m3u8_url, video_id,
|
m3u8_url, video_id,
|
||||||
note='Downloading m3u8 information',
|
note=note or 'Downloading m3u8 information',
|
||||||
errnote='Failed to download m3u8 information')
|
errnote=errnote or 'Failed to download m3u8 information')
|
||||||
last_info = None
|
last_info = None
|
||||||
last_media = None
|
last_media = None
|
||||||
kv_rex = re.compile(
|
kv_rex = re.compile(
|
||||||
|
|
Loading…
Reference in New Issue