mirror of
https://github.com/beetbox/beets.git
synced 2026-01-26 10:02:31 +01:00
Fix #4080
Tested with https://www.discogs.com/SHOUSE-Love-Tonight-Robin-Schulz-Remix/release/20356324 https://www.discogs.com/release/20356324-SHOUSE-Love-Tonight-Robin-Schulz-Remix
This commit is contained in:
parent
9bab200d3d
commit
c4f2fffb63
1 changed files with 3 additions and 1 deletions
|
|
@ -209,8 +209,10 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
# of an input string as to avoid confusion with other metadata plugins.
|
||||
# An optional bracket can follow the integer, as this is how discogs
|
||||
# displays the release ID on its webpage.
|
||||
match = re.search(r'(^|\[*r|discogs\.com/.+/release/)(\d+)($|\])',
|
||||
# Issue #4080 highlighted that Discogs changed the way the URL is formed
|
||||
match = re.search(r'(^|[*r|discogs\.com/.+/release/])(\d+)($|)',
|
||||
album_id)
|
||||
|
||||
if not match:
|
||||
return None
|
||||
result = Release(self.discogs_client, {'id': int(match.group(2))})
|
||||
|
|
|
|||
Loading…
Reference in a new issue