0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 13:52:00 +01:00
This commit is contained in:
Kuba
2025-10-11 19:17:48 +02:00
parent 6cdc42f72c
commit d784d89cd0

View File

@@ -242,15 +242,15 @@ def play_playlist(playlist_path, custom_playlist: bool=False):
for i, (track, to_fade_in, to_fade_out, official, args) in enumerate(playlist):
if exit_pending:
logger.info("Quit received, waiting for song end.")
procman.wait_all(5)
procman.wait_all(cross_fade)
exit()
elif reload_pending:
logger.info("Reload requested, restarting with new arguments after song ending")
procman.wait_all(2)
procman.wait_all(cross_fade)
return "reload"
elif return_pending:
logger.info("Return reached, next song will reload the playlist.")
procman.wait_all(2)
procman.wait_all(cross_fade)
return
track_path = os.path.abspath(os.path.expanduser(track))
for module in simple_modules: module.on_new_track(i, track_path, to_fade_in, to_fade_out, official)