From cf57275652fe8890d854132c6e73934da14cde2a Mon Sep 17 00:00:00 2001 From: garret Date: Fri, 2 Feb 2024 13:18:20 +0000 Subject: support live url shorthand makes it a bit easier to use in the cli since you don't need to 'quote' for the #! --- yt_dlp_plugins/extractor/radiko.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'yt_dlp_plugins/extractor') 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[A-Z0-9-_]+)" + _VALID_URL = [ + r"https?://(?:www\.)?radiko\.jp/#!/live/(?P[A-Z0-9-_]+)", + r"https?://(?:www\.)?radiko\.jp/#(?P[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", -- cgit v1.2.3-70-g09d2