X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/7a5c1cfe93924351387b44919b3c0b2f66c4b883..61edf57f8f13f6dfd81154174e647eb5fdd26089:/yt_dlp/extractor/radiode.py diff --git a/yt_dlp/extractor/radiode.py b/yt_dlp/extractor/radiode.py index 2c06c8b1e..1bf744951 100644 --- a/yt_dlp/extractor/radiode.py +++ b/yt_dlp/extractor/radiode.py @@ -1,9 +1,8 @@ -from __future__ import unicode_literals - from .common import InfoExtractor class RadioDeIE(InfoExtractor): + _WORKING = False IE_NAME = 'radio.de' _VALID_URL = r'https?://(?P.+?)\.(?:radio\.(?:de|at|fr|pt|es|pl|it)|rad\.io)' _TEST = { @@ -18,7 +17,7 @@ class RadioDeIE(InfoExtractor): }, 'params': { 'skip_download': True, - } + }, } def _real_extract(self, url): @@ -29,7 +28,7 @@ def _real_extract(self, url): webpage, 'broadcast') broadcast = self._parse_json(jscode, radio_id) - title = self._live_title(broadcast['name']) + title = broadcast['name'] description = broadcast.get('description') or broadcast.get('shortDescription') thumbnail = broadcast.get('picture4Url') or broadcast.get('picture4TransUrl') or broadcast.get('logo100x100') @@ -38,9 +37,8 @@ def _real_extract(self, url): 'ext': stream['streamContentFormat'].lower(), 'acodec': stream['streamContentFormat'], 'abr': stream['bitRate'], - 'asr': stream['sampleRate'] + 'asr': stream['sampleRate'], } for stream in broadcast['streamUrls']] - self._sort_formats(formats) return { 'id': radio_id,