mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
move simple module new track call
This commit is contained in:
+2
-1
@@ -214,7 +214,6 @@ def play_playlist(playlist_path):
|
||||
track, to_fade_in, to_fade_out, official, args = track_tuple
|
||||
|
||||
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)
|
||||
|
||||
refresh = playlist_advisor.new_playlist()
|
||||
@@ -227,6 +226,8 @@ def play_playlist(playlist_path):
|
||||
return_pending = True
|
||||
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}")
|
||||
if extend:
|
||||
logger.info(f"Next up: {os.path.basename(playlist[song_i][0])}")
|
||||
|
||||
Reference in New Issue
Block a user