From 76c3e466299b75fcb8e441654ac2fa1fcfcaced6 Mon Sep 17 00:00:00 2001 From: garret Date: Mon, 5 Aug 2024 07:16:02 +0100 Subject: don't inherit from RadikoBaseIE when not needed --- yt_dlp_plugins/extractor/radiko.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yt_dlp_plugins') diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 4051e14..b76387d 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -523,7 +523,7 @@ class RadikoTimeFreeIE(_RadikoBaseIE): } -class RadikoSearchIE(_RadikoBaseIE): +class RadikoSearchIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?radiko\.jp/#!/search/(?:timeshift|live|history)\?" _TESTS = [{ # timefree, specific area @@ -590,7 +590,7 @@ class RadikoSearchIE(_RadikoBaseIE): "entries": results, } -class RadikoShareIE(_RadikoBaseIE): +class RadikoShareIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?radiko\.jp/share/" _TESTS = [{ # 29-hour time -> 24-hour time @@ -632,7 +632,7 @@ class RadikoShareIE(_RadikoBaseIE): return self.url_result(f"https://radiko.jp/#!/ts/{station}/{time}", RadikoTimeFreeIE) -class RadikoStationButtonIE(_RadikoBaseIE): +class RadikoStationButtonIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?radiko\.jp/button-embed/live/" _EMBED_REGEX = [fr"]+src=[\"'](?P{_VALID_URL}[^\"']+)"] -- cgit v1.2.3-70-g09d2