diff options
author | garret <garret@airmail.cc> | 2024-02-02 13:18:20 +0000 |
---|---|---|
committer | garret <garret@airmail.cc> | 2024-02-02 13:18:20 +0000 |
commit | cf57275652fe8890d854132c6e73934da14cde2a (patch) | |
tree | 200060ad29259e7567568188744e23892ac81d7d /yt_dlp_plugins/extractor | |
parent | dad436c86b0bc28348c247c1c61ebfc09cf703a0 (diff) | |
download | yt-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/extractor')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 9 |
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", |