You've already forked RadioPlayer
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:
@@ -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])}")
|
||||||
|
|||||||
Reference in New Issue
Block a user