Browse Source

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

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
085d9dd9be
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/rai.py

+ 2
- 2
youtube_dl/extractor/rai.py View File

@ -345,11 +345,11 @@ class RaiIE(RaiBaseIE):
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)


Loading…
Cancel
Save