# HG changeset patch # User souliane # Date 1385671392 -3600 # Node ID 7a1dc69112b841fe9e402198812fff7652f61a10 # Parent e76ec07be8e55f33213e8fb0e1045fecd0a0fae2 browser_side (plugin radiocol): send the current queue to new players diff -r e76ec07be8e5 -r 7a1dc69112b8 browser_side/radiocol.py --- a/browser_side/radiocol.py Wed Nov 27 13:33:56 2013 +0100 +++ b/browser_side/radiocol.py Thu Nov 28 21:43:12 2013 +0100 @@ -143,7 +143,8 @@ def onSubmitComplete(self, event): result = event.getResults() if result == "OK": - self.setTemporaryStatus('[Your song has been added to queue]', "ok") + # the song can still be rejected (not readable, full queue...) + self.setTemporaryStatus('[Your song has been submitted to the radio]', "ok") elif result == "KO": self.setTemporaryStatus('[Something went wrong during your song upload]', "ko") else: @@ -157,14 +158,16 @@ HTML.__init__(self) self._id = player_id self.metadata = metadata_panel + self.timestamp = "" self.title = "" self.artist = "" self.album = "" self.filename = None self.played = False # True when song is playing/played, become False on preload - def preload(self, filename, title, artist, album): + def preload(self, timestamp, filename, title, artist, album): """preload the song but doesn't play it""" + self.timestamp = timestamp self.filename = filename self.title = title self.artist = artist @@ -173,17 +176,18 @@ self.setHTML('