1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-29 21:52:54 +00:00

add m3u8 formats extractor so that user can use -f best

This commit is contained in:
Robert Jacobson 2020-03-21 20:31:19 -04:00
parent 61a4a0fda8
commit 831695a576

View file

@ -45,11 +45,15 @@ class DigitalConcertHallIE(InfoExtractor):
entries = []
for key in playlist_dict:
print("key: ", key, "\n")
print("key url: ", playlist_dict[key][0]['url'], "\n")
m3u8_url = playlist_dict[key][0]['url']
print("key url: ", m3u8_url, "\n")
formats = self._extract_m3u8_formats(m3u8_url, key, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)
print("formats:\n", formats)
entries.append({
'id': video_id,
'title': title + "-" + key,
'url': playlist_dict[key][0]['url'],
'id': key,
'title': title,
'url': m3u8_url,
'formats': formats,
})
# for i in entries: