mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 07:12:41 +00:00
[generic] Extract m3u8 formats from JSON-LD
This commit is contained in:
parent
75ad33572b
commit
e6ae51c123
1 changed files with 4 additions and 0 deletions
|
@ -3653,6 +3653,10 @@ class GenericIE(InfoExtractor):
|
|||
json_ld = self._search_json_ld(webpage, video_id, default={})
|
||||
if json_ld.get('url'):
|
||||
self.report_detected('JSON LD')
|
||||
if determine_ext(json_ld.get('url')) == 'm3u8':
|
||||
json_ld['formats'], json_ld['subtitles'] = self._extract_m3u8_formats_and_subtitles(
|
||||
json_ld['url'], video_id, 'mp4')
|
||||
json_ld.pop('url')
|
||||
return merge_dicts(json_ld, info_dict)
|
||||
|
||||
def check_video(vurl):
|
||||
|
|
Loading…
Reference in a new issue