added handling for local tracks

This commit is contained in:
aj 2019-05-30 20:45:29 +01:00
parent de247960ba
commit 9750ff8b80

View File

@ -34,7 +34,7 @@ if __name__ == '__main__':
log.log("pulling tracks for {}".format(play.name)) log.log("pulling tracks for {}".format(play.name))
play.tracks = net.getPlaylistTracks(play.playlistid) play.tracks = net.getPlaylistTracks(play.playlistid)
tracks += [i for i in play.tracks if i['track']['uri'] not in [j['track']['uri'] for j in tracks]] tracks += [i for i in play.tracks if i['track']['uri'] not in [j['track']['uri'] for j in tracks] and i['is_local'] is False]
else: else:
log.log("requested playlist {} not found".format(part)) log.log("requested playlist {} not found".format(part))