Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #4080 #4085

Merged
merged 9 commits into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion beetsplug/discogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,11 @@ def album_for_id(self, album_id):
# 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+)($|)',
wisp3rwind marked this conversation as resolved.
Show resolved Hide resolved
album_id)

if not match:
return None
result = Release(self.discogs_client, {'id': int(match.group(2))})
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Bug fixes:
* :doc:`/plugins/lyrics`: Fix crash bug when beautifulsoup4 is not installed.
:bug:`4027`

* :doc:`/plugins/discogs`: Fix regex for new style of regex.
wisp3rwind marked this conversation as resolved.
Show resolved Hide resolved
:bug: `4080`

1.5.0 (August 19, 2021)
-----------------------

Expand Down