0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-27 14:13:55 +01:00

move simple module new track call

This commit is contained in:
Kuba
2025-10-19 09:39:34 +02:00
parent ee48633fe2
commit 8b49b9f48b

View File

@@ -214,7 +214,6 @@ def play_playlist(playlist_path):
track, to_fade_in, to_fade_out, official, args = track_tuple track, to_fade_in, to_fade_out, official, args = track_tuple
track_path = os.path.abspath(os.path.expanduser(track)) track_path = os.path.abspath(os.path.expanduser(track))
for module in simple_modules: module.on_new_track(song_i, track_path, to_fade_in, to_fade_out, official)
track_name = os.path.basename(track_path) track_name = os.path.basename(track_path)
refresh = playlist_advisor.new_playlist() refresh = playlist_advisor.new_playlist()
@@ -227,6 +226,8 @@ def play_playlist(playlist_path):
return_pending = True return_pending = True
if not procman.anything_playing(): continue if not procman.anything_playing(): continue
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}")
if extend: if extend:
logger.info(f"Next up: {os.path.basename(playlist[song_i][0])}") logger.info(f"Next up: {os.path.basename(playlist[song_i][0])}")