mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 17:09:20 +02:00
mpv player can count playlist itself
This commit is contained in:
parent
39f23c3135
commit
8fa1773807
|
@ -123,8 +123,7 @@ def radio_load(id_radio=None, type_radio='custom', name=None, related_object=Non
|
||||||
select = fzf.prompt(player_items_menu,
|
select = fzf.prompt(player_items_menu,
|
||||||
f"--header=\'Radio {name} playing...\'")[0]
|
f"--header=\'Radio {name} playing...\'")[0]
|
||||||
if select == 'Next':
|
if select == 'Next':
|
||||||
playlist_remaining = len(
|
playlist_remaining = player.playlist_count - player.playlist_current_pos
|
||||||
player.playlist) - player.playlist_current_pos
|
|
||||||
if playlist_remaining <= 2:
|
if playlist_remaining <= 2:
|
||||||
threading.Thread(target=radio_get_track, args=(
|
threading.Thread(target=radio_get_track, args=(
|
||||||
radio_session_id,), daemon=True).start()
|
radio_session_id,), daemon=True).start()
|
||||||
|
|
Loading…
Reference in New Issue