mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-02 05:07:55 +01:00
Avoid guessing filetype
This commit is contained in:
parent
a58aafd664
commit
603bce83e1
@ -532,14 +532,12 @@ class RaiPlayRadioBaseIE(InfoExtractor):
|
|||||||
webpage = self._download_webpage(url, uid)
|
webpage = self._download_webpage(url, uid)
|
||||||
for attrs in self.parse_list(webpage):
|
for attrs in self.parse_list(webpage):
|
||||||
title = attrs['data-title'].strip()
|
title = attrs['data-title'].strip()
|
||||||
webpage = urljoin(url, attrs['data-mediapolis'])
|
audio_url = urljoin(url, attrs['data-mediapolis'])
|
||||||
audio_url = compat_str(self._request_webpage(
|
|
||||||
webpage, title).geturl())
|
|
||||||
yield {
|
yield {
|
||||||
'url': audio_url,
|
'url': audio_url,
|
||||||
'id': attrs['data-uniquename'].lstrip('ContentItem-'),
|
'id': attrs['data-uniquename'].lstrip('ContentItem-'),
|
||||||
'title': title,
|
'title': title,
|
||||||
'ext': determine_ext(audio_url),
|
'ext': 'mp3',
|
||||||
'thumbnail': urljoin(url, attrs['data-image']),
|
'thumbnail': urljoin(url, attrs['data-image']),
|
||||||
'language': 'it'}
|
'language': 'it'}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user