mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-23 19:49:21 +02:00
Compare commits
2 Commits
1a95d26238
...
8bc6e8e01d
Author | SHA1 | Date | |
---|---|---|---|
localhost_frssoft | 8bc6e8e01d | ||
localhost_frssoft | 1be8307e02 |
|
@ -1,4 +1,4 @@
|
||||||
loguru
|
loguru
|
||||||
requests
|
requests
|
||||||
pyfzf
|
pyfzf
|
||||||
python-mpv
|
mpv
|
||||||
|
|
|
@ -158,7 +158,7 @@ def player_menu(header='', storage={}):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
player_items_menu = ['Next', 'Prev', 'Pause',
|
player_items_menu = ['Next', 'Prev', 'Pause',
|
||||||
'Shuffle', 'Download', 'Info', 'Share']
|
'Shuffle', 'Download', 'Info', 'Share', 'Jump to']
|
||||||
if player.pause:
|
if player.pause:
|
||||||
player_items_menu[2] = 'Play'
|
player_items_menu[2] = 'Play'
|
||||||
else:
|
else:
|
||||||
|
@ -204,6 +204,10 @@ def player_menu(header='', storage={}):
|
||||||
track_info_output(track)
|
track_info_output(track)
|
||||||
elif select == 'Share':
|
elif select == 'Share':
|
||||||
send_listen_activity()
|
send_listen_activity()
|
||||||
|
elif select == 'Jump to':
|
||||||
|
jump_to_idx = int(fzf.prompt(range(1, len(player.playlist_filenames)+1))[0])
|
||||||
|
jump_to_idx -= 1
|
||||||
|
player.playlist_play_index(jump_to_idx)
|
||||||
elif select == 'Like':
|
elif select == 'Like':
|
||||||
src.fw_api.favorite_track(
|
src.fw_api.favorite_track(
|
||||||
player_fw_storage.storage.get(track_url_to_uuid())['id'])
|
player_fw_storage.storage.get(track_url_to_uuid())['id'])
|
||||||
|
|
Loading…
Reference in New Issue