You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
check for refresh before new song
This commit is contained in:
@@ -199,6 +199,11 @@ def play_playlist(playlist_path):
|
|||||||
logger.info("Return reached, next song will reload the playlist.")
|
logger.info("Return reached, next song will reload the playlist.")
|
||||||
procman.wait_all()
|
procman.wait_all()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if playlist_advisor.new_playlist():
|
||||||
|
logger.info("Reloading now...")
|
||||||
|
return_pending = True
|
||||||
|
continue
|
||||||
|
|
||||||
old_track_tuple = playlist[song_i % len(playlist)]
|
old_track_tuple = playlist[song_i % len(playlist)]
|
||||||
if active_modifier:
|
if active_modifier:
|
||||||
@@ -215,13 +220,6 @@ def play_playlist(playlist_path):
|
|||||||
track_path = os.path.abspath(os.path.expanduser(track))
|
track_path = os.path.abspath(os.path.expanduser(track))
|
||||||
track_name = os.path.basename(track_path)
|
track_name = os.path.basename(track_path)
|
||||||
|
|
||||||
refresh = playlist_advisor.new_playlist()
|
|
||||||
|
|
||||||
if refresh == True:
|
|
||||||
logger.info("Reloading now...")
|
|
||||||
return_pending = True
|
|
||||||
continue
|
|
||||||
|
|
||||||
for module in simple_modules: module.on_new_track(song_i, track_path, to_fade_in, to_fade_out, official)
|
for module in simple_modules: module.on_new_track(song_i, track_path, to_fade_in, to_fade_out, official)
|
||||||
|
|
||||||
logger.info(f"Now playing: {track_name}")
|
logger.info(f"Now playing: {track_name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user