]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[rai] Fix audio formats extraction (closes #14024)
authorSergey M․ <dstftw@gmail.com>
Sat, 26 Aug 2017 15:02:49 +0000 (22:02 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 26 Aug 2017 15:02:49 +0000 (22:02 +0700)
youtube_dl/extractor/rai.py

index e11bf8f9a3d65dfbbe7cdacde7ca6982883b33e1..5bf64a56b71d6e0d4282d69476410e1108555877 100644 (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)