From bd51e96ddabc48de64ac91970d4bdf2f576b0509 Mon Sep 17 00:00:00 2001 From: garret Date: Sun, 11 Aug 2024 11:58:31 +0100 Subject: get rid of unnecessary "else"s (+ fix indentation) --- yt_dlp_plugins/extractor/radiko.py | 20 ++++++++++---------- 1 file 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, -- cgit v1.2.3-70-g09d2