From: Sergey M․ Date: Sat, 26 Aug 2017 15:02:49 +0000 (+0700) Subject: [rai] Fix audio formats extraction (closes #14024) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=085d9dd9bebfd1692cfe07e8bcb844780bfe4700;p=youtube-dl [rai] Fix audio formats extraction (closes #14024) --- 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)