mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-15 00:48:28 +00:00
Fix double quotes
This commit is contained in:
parent
b73250f275
commit
4f21363359
@ -129,7 +129,7 @@ def _real_extract(self, url):
|
|||||||
try:
|
try:
|
||||||
media_info = json_info.get('data').get('playlist').get('medialist')[0]
|
media_info = json_info.get('data').get('playlist').get('medialist')[0]
|
||||||
except (KeyError, AttributeError, TypeError) as e:
|
except (KeyError, AttributeError, TypeError) as e:
|
||||||
raise ExtractorError("media_info get error: %s " % str(e), expected=True)
|
raise ExtractorError('media_info get error: %s' % str(e), expected=True)
|
||||||
try:
|
try:
|
||||||
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
||||||
media_info.get('sources').get('m3u8').get('auto'), video_id, 'mp4', m3u8_id='hls',
|
media_info.get('sources').get('m3u8').get('auto'), video_id, 'mp4', m3u8_id='hls',
|
||||||
@ -144,6 +144,6 @@ def _real_extract(self, url):
|
|||||||
'duration': int_or_none(media_info.get('duration')),
|
'duration': int_or_none(media_info.get('duration')),
|
||||||
}
|
}
|
||||||
except (KeyError, AttributeError, TypeError) as e:
|
except (KeyError, AttributeError, TypeError) as e:
|
||||||
raise ExtractorError("Result error: %s" % str(e), expected=True)
|
raise ExtractorError('Result error: %s' % str(e), expected=True)
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
Loading…
Reference in New Issue
Block a user