From 8c6cc6573c3ce775dc3717ca3c510aed908c929d Mon Sep 17 00:00:00 2001 From: Rahul Ahuja Date: Tue, 22 Jan 2019 19:42:25 -0800 Subject: [PATCH] Unidecode query string --- beetsplug/spotify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index e297af940..032306f78 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -8,8 +8,9 @@ import base64 import webbrowser import collections -import requests import six +import unidecode +import requests from beets import ui from beets.plugins import BeetsPlugin @@ -383,7 +384,7 @@ class SpotifyPlugin(BeetsPlugin): query = ' '.join([q for q in query_components if q]) if not isinstance(query, six.text_type): query = query.decode('utf8') - return query + return unidecode.unidecode(query) def _search_spotify(self, query_type, filters=None, keywords=''): """Query the Spotify Search API for the specified ``keywords``, applying