aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2024-02-02 13:18:20 +0000
committergarret <garret@airmail.cc>2024-02-02 13:18:20 +0000
commitcf57275652fe8890d854132c6e73934da14cde2a (patch)
tree200060ad29259e7567568188744e23892ac81d7d /yt_dlp_plugins
parentdad436c86b0bc28348c247c1c61ebfc09cf703a0 (diff)
downloadyt-dlp-rajiko-cf57275652fe8890d854132c6e73934da14cde2a.tar.gz
yt-dlp-rajiko-cf57275652fe8890d854132c6e73934da14cde2a.tar.bz2
yt-dlp-rajiko-cf57275652fe8890d854132c6e73934da14cde2a.zip
support live url shorthand
makes it a bit easier to use in the cli since you don't need to 'quote' for the #!
Diffstat (limited to 'yt_dlp_plugins')
-rw-r--r--yt_dlp_plugins/extractor/radiko.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py
index d42a572..f1ac99a 100644
--- a/yt_dlp_plugins/extractor/radiko.py
+++ b/yt_dlp_plugins/extractor/radiko.py
@@ -586,7 +586,10 @@ class _RadikoBaseIE(InfoExtractor):
class RadikoLiveIE(_RadikoBaseIE):
- _VALID_URL = r"https?://(?:www\.)?radiko\.jp/#!/live/(?P<id>[A-Z0-9-_]+)"
+ _VALID_URL = [
+ r"https?://(?:www\.)?radiko\.jp/#!/live/(?P<id>[A-Z0-9-_]+)",
+ r"https?://(?:www\.)?radiko\.jp/#(?P<id>[A-Z0-9-_]+)"
+ ]
_TESTS = [{
# JP13 (Tokyo)
"url": "https://radiko.jp/#!/live/FMT",
@@ -604,8 +607,8 @@ class RadikoLiveIE(_RadikoBaseIE):
"uploader": "TOKYO FM",
},
}, {
- # JP1 (Hokkaido)
- "url": "https://radiko.jp/#!/live/NORTHWAVE",
+ # JP1 (Hokkaido) - shorthand
+ "url": "https://radiko.jp/#NORTHWAVE",
"info_dict": {
"id": "NORTHWAVE",
"ext": "m4a",