0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[rai] Fix audio formats extraction (closes #14024)

This commit is contained in:
Sergey M․ 2017-08-26 22:02:49 +07:00
parent 151978f38a
commit 085d9dd9be
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -345,11 +345,11 @@ def _extract_from_content_id(self, content_id, url):
media_type = media['type']
if 'Audio' in media_type:
relinker_info = {
'formats': {
'formats': [{
'format_id': media.get('formatoAudio'),
'url': media['audioUrl'],
'ext': media.get('formatoAudio'),
}
}]
}
elif 'Video' in media_type:
relinker_info = self._extract_relinker_info(media['mediaUri'], content_id)