From 603bce83e1787e696d70d3b5efcbb709af28312b Mon Sep 17 00:00:00 2001 From: Francesco Frassinelli Date: Tue, 17 Mar 2020 23:57:34 +0100 Subject: [PATCH] Avoid guessing filetype --- youtube_dl/extractor/rai.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/rai.py b/youtube_dl/extractor/rai.py index a594385f5..915b0e1ae 100644 --- a/youtube_dl/extractor/rai.py +++ b/youtube_dl/extractor/rai.py @@ -532,14 +532,12 @@ class RaiPlayRadioBaseIE(InfoExtractor): webpage = self._download_webpage(url, uid) for attrs in self.parse_list(webpage): title = attrs['data-title'].strip() - webpage = urljoin(url, attrs['data-mediapolis']) - audio_url = compat_str(self._request_webpage( - webpage, title).geturl()) + audio_url = urljoin(url, attrs['data-mediapolis']) yield { 'url': audio_url, 'id': attrs['data-uniquename'].lstrip('ContentItem-'), 'title': title, - 'ext': determine_ext(audio_url), + 'ext': 'mp3', 'thumbnail': urljoin(url, attrs['data-image']), 'language': 'it'}