mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-10 05:20:09 +09:00
Changed quality parameter to preference to accodomate sorting the m3u8 streams
This commit is contained in:
parent
7784d3c37e
commit
60bbab1022
@ -66,17 +66,17 @@ class DumpertIE(InfoExtractor):
|
|||||||
if not uri:
|
if not uri:
|
||||||
continue
|
continue
|
||||||
version = variant.get('version')
|
version = variant.get('version')
|
||||||
|
preference = quality(version)
|
||||||
ext = determine_ext(uri)
|
ext = determine_ext(uri)
|
||||||
if ext == 'm3u8':
|
if ext == 'm3u8':
|
||||||
formats.extend(self._extract_m3u8_formats(
|
formats.extend(self._extract_m3u8_formats(
|
||||||
uri, video_id, ext='mp4', m3u8_id=version))
|
uri, video_id, ext='mp4', preference=preference))
|
||||||
else:
|
else:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': uri,
|
'url': uri,
|
||||||
'format_id': version,
|
'format_id': version,
|
||||||
|
'preference': preference,
|
||||||
})
|
})
|
||||||
for format in formats:
|
|
||||||
format['quality'] = quality(format['format_id'])
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
|
Loading…
Reference in New Issue
Block a user