aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2024-08-11 11:27:57 +0100
committergarret <garret@airmail.cc>2024-08-11 11:27:57 +0100
commitbe540fe77d00f22cf6a4f0f6865a109cf8011bdc (patch)
treee226f47c278ba43736c89e8b00975476d43fc3dc /yt_dlp_plugins
parentb0ae964f2d881235c4d436b8c7c1c3a04c7800f4 (diff)
downloadyt-dlp-rajiko-be540fe77d00f22cf6a4f0f6865a109cf8011bdc.tar.gz
yt-dlp-rajiko-be540fe77d00f22cf6a4f0f6865a109cf8011bdc.tar.bz2
yt-dlp-rajiko-be540fe77d00f22cf6a4f0f6865a109cf8011bdc.zip
persons: only check the extractor arg once
Diffstat (limited to 'yt_dlp_plugins')
-rw-r--r--yt_dlp_plugins/extractor/radiko.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py
index 7d06d37..618e1cb 100644
--- a/yt_dlp_plugins/extractor/radiko.py
+++ b/yt_dlp_plugins/extractor/radiko.py
@@ -719,10 +719,10 @@ class RadikoPersonIE(InfoExtractor):
person_api = self._download_json(person_api_url, person_id)
def entries():
+ key_station_only = len(self._configuration_arg("key_station_only", ie_key="rajiko")) > 0
for episode in person_api.get("data"):
- if len(self._configuration_arg("key_station_only", ie_key="rajiko")) > 0:
- if episode.get("key_station_id") != episode.get("station_id"):
- continue
+ if key_station_only and episode.get("key_station_id") != episode.get("station_id"):
+ continue
share_url = traverse_obj(episode, ("radiko_url", ("pc", "sp", "android", "ios", "app"),
{url_or_none}), get_all=False)