From e249fcb06f28022d305c8897225c3c5acdf55394 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 29 Aug 2015 12:45:10 -0700 Subject: [PATCH] fetchart: Fix #1581, splitting in Wikipedia source --- beetsplug/fetchart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index c43a09792..6014c10ef 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -269,7 +269,8 @@ class Wikipedia(ArtSource): # An additional Wikipedia call can help to find the real filename. # This may be removed once the DBPedia issue is resolved, see: # https://github.com/dbpedia/extraction-framework/issues/396 - if '.' not in cover_filename.split(' .')[-1]: + if ' .' in cover_filename and \ + '.' not in cover_filename.split(' .')[-1]: self._log.debug( 'wikipedia: dbpedia provided incomplete cover_filename' )