From 0630f4a2637e61a53b857cb93299a3a4a2bdd1ef Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Fri, 17 Mar 2023 20:10:07 +0100 Subject: [PATCH] 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" --- beetsplug/discogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 1d691406f..d86885f3c 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -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,