- playlists = result['result']['playlists']
- else:
- return []
- i = 0
- list = []
- while(i < len(playlists)):
- p = playlists[i]
- list.append([p['playlistName'].encode('ascii', 'ignore'), p['playlistID']])
- i = i + 1
- return sorted(list, key=itemgetter(0))
-
- # Gets playlist information
- def getPlaylistInfo(self, playlistID):
- result = self._callRemote('getPlaylistInfo', {'playlistID' : playlistID})
- if 'result' in result:
- return result['result']