HCoop
/
clinton
/
xbmc-groove.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disabled radio.
[clinton/xbmc-groove.git]
/
resources
/
lib
/
GrooveAPI.py
diff --git
a/resources/lib/GrooveAPI.py
b/resources/lib/GrooveAPI.py
index
e97d04d
..
b1e5c7e
100644
(file)
--- 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:
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
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:
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
self.radioEnabled = False
else:
self.radioEnabled = True
@@
-382,8
+384,10
@@
class GrooveAPI:
radio['seedArtists'].remove(artistId)
except: pass
radio['seedArtists'].append(artistId)
radio['seedArtists'].remove(artistId)
except: pass
radio['seedArtists'].append(artistId)
+ print "Saved radio"
return self.saveRadio(radio = radio)
else:
return self.saveRadio(radio = radio)
else:
+ print "Failed to get radio"
return False
def radioSong(self, songId = None):
return False
def radioSong(self, songId = None):
@@
-393,8
+397,10
@@
class GrooveAPI:
radio['seedSongs'].remove(songId)
except: pass
radio['seedSongs'].append(songId)
radio['seedSongs'].remove(songId)
except: pass
radio['seedSongs'].append(songId)
+ print "Saved radio"
return self.saveRadio(radio = radio)
else:
return self.saveRadio(radio = radio)
else:
+ print "Failed to get radio"
return False
def radioTurnedOn(self):
return False
def radioTurnedOn(self):
@@
-408,6
+414,7
@@
class GrooveAPI:
f.close()
print radio
except:
f.close()
print radio
except:
+ print "Failed to open " + path
radio = {}
radio['seedSongs'] = []
radio['seedArtists'] = []
radio = {}
radio['seedSongs'] = []
radio['seedArtists'] = []