Let client define whether updating or starting radio

This commit is contained in:
James Barnsley
2017-04-19 06:58:41 +12:00
parent 25a4218195
commit b73cbbb164
2 changed files with 2 additions and 1 deletions

View File

@ -256,7 +256,7 @@ class IrisCore(object):
def change_radio(self, data): def change_radio(self, data):
# figure out if we're starting or updating radio mode # figure out if we're starting or updating radio mode
if self.radio['enabled']: if data['update'] and self.radio['enabled']:
starting = False starting = False
self.initial_consume = self.core.tracklist.get_consume() self.initial_consume = self.core.tracklist.get_consume()
else: else:

View File

@ -253,6 +253,7 @@ const PusherMiddleware = (function(){
} }
var data = { var data = {
update: (action.type == 'PUSHER_UPDATE_RADIO'),
seed_artists: [], seed_artists: [],
seed_genres: [], seed_genres: [],
seed_tracks: [] seed_tracks: []