From 09bc2504133150ab19eda133565b9e513ac81544 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 26 Apr 2016 16:59:23 -0700 Subject: [PATCH] Fix #1960: Unicode in fetchart Wikipedia source The SparQL query needed to use a Unicode literal. --- beetsplug/fetchart.py | 2 +- docs/changelog.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index 797d774c4..a18e362e5 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -454,7 +454,7 @@ class Wikipedia(RemoteArtSource): NAME = u"Wikipedia (queried through DBpedia)" DBPEDIA_URL = 'http://dbpedia.org/sparql' WIKIPEDIA_URL = 'http://en.wikipedia.org/w/api.php' - SPARQL_QUERY = '''PREFIX rdf: + SPARQL_QUERY = u'''PREFIX rdf: PREFIX dbpprop: PREFIX owl: PREFIX rdfs: diff --git a/docs/changelog.rst b/docs/changelog.rst index 4908219a7..1844c4d87 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -41,6 +41,8 @@ Fixes: guess the URL for lyrics. :bug:`1880` * :doc:`/plugins/edit`: Fail gracefully when the configured text editor command can't be invoked. :bug:`1927` +* :doc:`/plugins/fetchart`: Fix a crash in the Wikipedia backend on non-ASCII + artist and album names. :bug:`1960` 1.3.17 (February 7, 2016)