[DrTuber] Applied fourth requested fixes for PR #13322
This commit is contained in:
parent
3d54503993
commit
6ee6e9c6c6
@ -49,15 +49,15 @@ class DrTuberIE(InfoExtractor):
|
|||||||
'embed': 0,
|
'embed': 0,
|
||||||
'aid': 0,
|
'aid': 0,
|
||||||
'domain_id': 0,
|
'domain_id': 0,
|
||||||
}, fatal=True)
|
})
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for video_url_key in video_data.get('files', {}):
|
for video_url_key, video_url_value in video_data['files'].items():
|
||||||
if video_data['files'][video_url_key]:
|
if video_url_value:
|
||||||
formats.append({
|
formats.append({
|
||||||
'format_id': video_url_key.upper(),
|
'format_id': video_url_key.upper(),
|
||||||
'quality': 2 if video_url_key == 'hq' else 1,
|
'quality': 2 if video_url_key == 'hq' else 1,
|
||||||
'url': video_data['files'][video_url_key]
|
'url': video_url_value
|
||||||
})
|
})
|
||||||
self._check_formats(formats, video_id)
|
self._check_formats(formats, video_id)
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user