mirror of
https://github.com/beetbox/beets.git
synced 2025-12-16 05:34:47 +01:00
Strip word "vinyl" when searching Discogs
In DiscogsPlugin.get_albums() we already strip away the words "CD" and "disk". It makes sense to also remove "vinyl"
This commit is contained in:
parent
3debf4edca
commit
0630f4a263
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
query = re.sub(r'(?u)\W+', ' ', query)
|
||||
# Strip medium information from query, Things like "CD1" and "disk 1"
|
||||
# can also negate an otherwise positive result.
|
||||
query = re.sub(r'(?i)\b(CD|disc)\s*\d+', '', query)
|
||||
query = re.sub(r'(?i)\b(CD|disc|vinyl)\s*\d+', '', query)
|
||||
|
||||
try:
|
||||
releases = self.discogs_client.search(query,
|
||||
|
|
|
|||
Loading…
Reference in a new issue