Skip to content

Commit

Permalink
support live url shorthand
Browse files Browse the repository at this point in the history
makes it a bit easier to use in the cli since you don't need to 'quote'
for the #!
  • Loading branch information
garret1317 committed Feb 2, 2024
1 parent dad436c commit cf57275
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions yt_dlp_plugins/extractor/radiko.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,10 @@ def _get_station_formats(self, station, timefree, auth_data, start_at=None, end_


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",
Expand All @@ -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",
Expand Down

0 comments on commit cf57275

Please sign in to comment.