X-Git-Url: https://git.hcoop.net/clinton/xbmc-groove.git/blobdiff_plain/2254a6b5bc3c9d75e4ee4a30a9796724f2650248..e6ccfeca53fe3df107378e3c7747a351049c7806:/resources/lib/GrooveAPI.py diff --git a/resources/lib/GrooveAPI.py b/resources/lib/GrooveAPI.py index e97d04d..b1e5c7e 100644 --- a/resources/lib/GrooveAPI.py +++ b/resources/lib/GrooveAPI.py @@ -334,6 +334,7 @@ class GrooveAPI: return False result = self.callRemote("autoplay.startWithArtistIDs", {"artistIDs": radio['seedArtists']}) if 'fault' in result: + print "Cannot autoplay artists" self.radioEnabled = False else: self.radioEnabled = True @@ -345,6 +346,7 @@ class GrooveAPI: return False result = self.callRemote("autoplay.start", {"songIDs": radio['seedSongs']}) if 'fault' in result: + print "Cannot autoplay songs" self.radioEnabled = False else: self.radioEnabled = True @@ -382,8 +384,10 @@ class GrooveAPI: radio['seedArtists'].remove(artistId) except: pass radio['seedArtists'].append(artistId) + print "Saved radio" return self.saveRadio(radio = radio) else: + print "Failed to get radio" return False def radioSong(self, songId = None): @@ -393,8 +397,10 @@ class GrooveAPI: radio['seedSongs'].remove(songId) except: pass radio['seedSongs'].append(songId) + print "Saved radio" return self.saveRadio(radio = radio) else: + print "Failed to get radio" return False def radioTurnedOn(self): @@ -408,6 +414,7 @@ class GrooveAPI: f.close() print radio except: + print "Failed to open " + path radio = {} radio['seedSongs'] = [] radio['seedArtists'] = []