aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/rai.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-08-26 22:02:49 +0700
committerSergey M․ <dstftw@gmail.com>2017-08-26 22:02:49 +0700
commit085d9dd9bebfd1692cfe07e8bcb844780bfe4700 (patch)
treed7e4cbdb644be5176b748cd7695ebc0448625af9 /youtube_dl/extractor/rai.py
parent151978f38a915afd0169e68955b3b7394c54e367 (diff)
[rai] Fix audio formats extraction (closes #14024)
Diffstat (limited to 'youtube_dl/extractor/rai.py')
-rw-r--r--youtube_dl/extractor/rai.py4
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)