0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

fix official

This commit is contained in:
2025-12-14 13:14:33 +01:00
parent 8226d58459
commit 0318d3a5d1

View File

@@ -78,10 +78,19 @@ class Module(ActiveModifier):
if len(songs):
# There are more tracks on the temp list
new_song, new_official = get_song(False)
self.last_track = Track(song, self.crossfade if new_official else 0, last_track_fade_out, official, {}, focus_time_offset=-self.crossfade if new_official else 0)
next_track = Track(new_song, self.crossfade if len(songs) else next_track_fade_in, self.crossfade if new_official else 0, new_official, {}, focus_time_offset=-self.crossfade if len(songs) else -next_track_fade_in)
current_track_fade_in = last_track_fade_out if official else 0
crossfade_amount = self.crossfade if official and new_official else 0
self.last_track = Track(song, crossfade_amount, current_track_fade_in, official, {}, focus_time_offset=-crossfade_amount)
next_track_fade_out = self.crossfade if new_official else 0
next_track = Track(new_song, next_track_fade_out, crossfade_amount, new_official, {}, focus_time_offset=-crossfade_amount)
else:
self.last_track = Track(song, next_track_fade_in, last_track_fade_out, official, {}, focus_time_offset=-next_track_fade_in)
next_playlist_track_fade_in = next_track.fade_in if next_track else self.crossfade
current_track_fade_in = last_track_fade_out if official else 0
current_track_fade_out = next_playlist_track_fade_in if official else 0
self.last_track = Track(song, current_track_fade_out, current_track_fade_in, official, {}, focus_time_offset=-current_track_fade_out)
next_track = track
self.limit_tracks = False
if self.skip_next: