diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-08-26 22:02:49 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-08-26 22:02:49 +0700 |
commit | 085d9dd9bebfd1692cfe07e8bcb844780bfe4700 (patch) | |
tree | d7e4cbdb644be5176b748cd7695ebc0448625af9 | |
parent | 151978f38a915afd0169e68955b3b7394c54e367 (diff) |
[rai] Fix audio formats extraction (closes #14024)
-rw-r--r-- | youtube_dl/extractor/rai.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/rai.py b/youtube_dl/extractor/rai.py index e11bf8f9a..5bf64a56b 100644 --- a/youtube_dl/extractor/rai.py +++ b/youtube_dl/extractor/rai.py @@ -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) |