diff options
author | garret <garret@airmail.cc> | 2024-08-11 11:58:31 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2024-08-11 11:58:31 +0100 |
commit | bd51e96ddabc48de64ac91970d4bdf2f576b0509 (patch) | |
tree | 6cf69c0677942b4535a0671698da7edebdb23e8f /yt_dlp_plugins/extractor/radiko.py | |
parent | 8285e34af4f17eb5355205ff3651bf30b827d501 (diff) | |
download | yt-dlp-rajiko-bd51e96ddabc48de64ac91970d4bdf2f576b0509.tar.gz yt-dlp-rajiko-bd51e96ddabc48de64ac91970d4bdf2f576b0509.tar.bz2 yt-dlp-rajiko-bd51e96ddabc48de64ac91970d4bdf2f576b0509.zip |
get rid of unnecessary "else"s (+ fix indentation)
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko.py')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 618e1cb..fa5a15c 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -230,9 +230,9 @@ class _RadikoBaseIE(InfoExtractor): "meta": meta }) return meta - else: - self.to_screen(f"{station_id}: Using cached station metadata") - return cachedata.get("meta") + + self.to_screen(f"{station_id}: Using cached station metadata") + return cachedata.get("meta") def _get_station_formats(self, station, timefree, auth_data, start_at=None, end_at=None): device = self._configuration_arg('device', ['aSmartPhone7a'], casesense=True, ie_key="rajiko")[0] # aSmartPhone7a formats = always happy path @@ -274,13 +274,13 @@ class _RadikoBaseIE(InfoExtractor): entry_protocol = 'm3u8' if domain in self._DOESNT_WORK_WITH_FFMPEG: - self.write_debug(f"skipping {domain} (known not working)") - continue - elif domain in self._DELIVERED_ONDEMAND: - # override the defaults for delivered as on-demand - delivered_live = False - preference = 1 - entry_protocol = None + self.write_debug(f"skipping {domain} (known not working)") + continue + if domain in self._DELIVERED_ONDEMAND: + # override the defaults for delivered as on-demand + delivered_live = False + preference = 1 + entry_protocol = None formats += self._extract_m3u8_formats( playlist_url, station, m3u8_id=domain, fatal=False, headers=auth_data, |