Skip to content

Commit

Permalink
Fix apple music parser for certain user playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Dec 24, 2024
1 parent e792669 commit e6a2fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onthespot/parse_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .utils import format_local_id

logger = get_logger('parse_item')
APPLE_MUSIC_URL_REGEX = re.compile(r'https?://music\.apple\.com/([a-z]{2})/(?P<type>album|playlist|artist)/(?P<title>[-a-z0-9]+)/(?P<id>[\w.]+)(?:\?i=(?P<track_id>\d+))?')
APPLE_MUSIC_URL_REGEX = re.compile(r'https?://music\.apple\.com/([a-z]{2})/(?P<type>album|playlist|artist)/(?P<title>[-a-z0-9]+)/(?P<id>[\w.-]+)(?:\?i=(?P<track_id>\d+))?')
BANDCAMP_URL_REGEX = re.compile(r'https?://[a-z0-9-]+\.bandcamp\.com(?:/(?P<type>track|album|music)/[a-z0-9-]+)?')
DEEZER_URL_REGEX = re.compile(r'https?://www.deezer.com/(?:[a-z]{2}/)?(?P<type>album|playlist|track|artist)/(?P<id>\d+)')
QOBUZ_URL_REGEX = re.compile(r"https?://(open\.|play\.)?qobuz.com/(?:[a-z]{2}-[a-z]{2}/)?(?P<type>album|track|artist|playlist|label)/(?P<id>[-a-z0-9]+)")
Expand Down

0 comments on commit e6a2fa3

Please sign in to comment.