Skip to content

Commit 5f2c743

Browse files
authored
Merge pull request #276 from symphoniacus/fix-classical-url-parsing
fix: add support for Apple Music Classical URLs
2 parents 6b67c43 + d11e937 commit 5f2c743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gamdl/downloader/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
PLAYLIST_MEDIA_TYPE = {"playlist", "playlists", "library-playlists"}
1313

1414
VALID_URL_PATTERN = re.compile(
15-
r"https://music\.apple\.com"
15+
r"https://(?:classical\.)?music\.apple\.com"
1616
r"(?:"
1717
r"/(?P<storefront>[a-z]{2})"
1818
r"/(?P<type>artist|album|playlist|song|music-video|post)"

0 commit comments

Comments
 (0)