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