mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-22 05:39:48 +00:00
Fix next track switch
This commit is contained in:
parent
0c1a5d0887
commit
b74e5ce026
@ -126,7 +126,11 @@ def radio_load(id_radio=None, type_radio='custom', name=None, related_object=Non
|
||||
if playlist_remaining <= 2:
|
||||
threading.Thread(target=radio_get_track, args=(
|
||||
radio_session_id,), daemon=True).start()
|
||||
player.playlist_next()
|
||||
if playlist_remaining > 1:
|
||||
player.playlist_next()
|
||||
else:
|
||||
print('No more tracks, please wait for new...')
|
||||
time.sleep(3)
|
||||
elif select == 'Prev':
|
||||
player.playlist_prev()
|
||||
elif select in ('Pause', 'Play'):
|
||||
|
@ -85,7 +85,10 @@ def player_menu(header='', storage={}):
|
||||
|
||||
select = fzf.prompt(player_items_menu, f"--header=\'{header}\'")[0]
|
||||
if select == 'Next':
|
||||
player.playlist_next()
|
||||
try:
|
||||
player.playlist_next()
|
||||
except:
|
||||
print('No more next tracks')
|
||||
elif select == 'Prev':
|
||||
player.playlist_prev()
|
||||
elif select in ('Pause', 'Play'):
|
||||
|
Loading…
Reference in New Issue
Block a user