Skip to content
Browse files

wrong override caused failure to check lastfm plugin presence in arti…

…st view - issue #264
  • Loading branch information...
1 parent 66f2800 commit 645fc546e3e4c1c8975a364d32af2f88bb492575 @fossfreedom committed
Showing with 9 additions and 3 deletions.
  1. +2 −2 coverart_artistview.py
  2. +7 −1 coverart_utils.py
View
4 coverart_artistview.py
@@ -131,8 +131,6 @@ class ArtistsModel(GObject.Object):
'artist_album': 2, 'show': 3,
'empty': 4, 'markup': 5, 'expander': 6}
- force_lastfm_check = True
-
def __init__(self, album_manager):
super(ArtistsModel, self).__init__()
@@ -675,6 +673,8 @@ def _on_album_added(self, album_model, album):
class ArtistCoverManager(CoverManager):
+ force_lastfm_check = True
+
def __init__(self, plugin, artist_manager):
self.cover_db = CoverArtExtDB(name='artist-art')
View
8 coverart_utils.py
@@ -775,10 +775,16 @@ def check_lastfm(force_check=False):
'''
providers = get_search_providers()
+ print (providers)
+ print (force_check)
if force_check or 'lastfm-search' in providers:
- return lastfm_connected()
+ connected = lastfm_connected()
+ print (connected)
+ return connected
elif not 'lastfm-search' in providers:
+ print ("not lastm-search")
return True
else:
+ print ("returning default")
return False

0 comments on commit 645fc54

Please sign in to comment.
Something went wrong with that request. Please try again.