You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +01:00
oh
This commit is contained in:
@@ -84,6 +84,10 @@ class Module(ActiveModifier):
|
|||||||
self.last_track = Track(song, next_track_fade_in, last_track_fade_out, official, {}, focus_time_offset=-next_track_fade_in)
|
self.last_track = Track(song, next_track_fade_in, last_track_fade_out, official, {}, focus_time_offset=-next_track_fade_in)
|
||||||
next_track = track
|
next_track = track
|
||||||
self.limit_tracks = False
|
self.limit_tracks = False
|
||||||
|
if self.skip_next:
|
||||||
|
logger.info("Skip next flag was on, skipping this song.")
|
||||||
|
self.skip_next = False
|
||||||
|
return (None, None), None
|
||||||
return (self.last_track, next_track), True
|
return (self.last_track, next_track), True
|
||||||
elif len(self.originals):
|
elif len(self.originals):
|
||||||
self.last_track = self.originals.pop(0)
|
self.last_track = self.originals.pop(0)
|
||||||
|
|||||||
@@ -181,6 +181,7 @@
|
|||||||
} else if(msg.event === "new_track"){
|
} else if(msg.event === "new_track"){
|
||||||
applyTrackState(msg.data);
|
applyTrackState(msg.data);
|
||||||
ws.send(JSON.stringify({action:"get_toplay"}));
|
ws.send(JSON.stringify({action:"get_toplay"}));
|
||||||
|
ws.send(JSON.stringify({action:"skip_next",set:false}));
|
||||||
} else if(msg.event === "progress"){
|
} else if(msg.event === "progress"){
|
||||||
applyProgressState(msg.data);
|
applyProgressState(msg.data);
|
||||||
} else if(msg.event === "toplay") {
|
} else if(msg.event === "toplay") {
|
||||||
|
|||||||
Reference in New Issue
Block a user