Changed quality parameter to preference to accodomate sorting the m3u8 streams

This commit is contained in:
DataGhost 2022-05-30 15:10:04 +02:00
parent 7784d3c37e
commit 60bbab1022
1 changed files with 3 additions and 3 deletions

View File

@ -66,17 +66,17 @@ class DumpertIE(InfoExtractor):
if not uri:
continue
version = variant.get('version')
preference = quality(version)
ext = determine_ext(uri)
if ext == 'm3u8':
formats.extend(self._extract_m3u8_formats(
uri, video_id, ext='mp4', m3u8_id=version))
uri, video_id, ext='mp4', preference=preference))
else:
formats.append({
'url': uri,
'format_id': version,
'preference': preference,
})
for format in formats:
format['quality'] = quality(format['format_id'])
self._sort_formats(formats)
thumbnails = []