mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 13:09:19 +02:00
Compare commits
No commits in common. "a6bdeab60ca09c7741750cbc0081f411f3cdea3b" and "1c90dd5d0e6a462a3e123a3888099f7194b18cd0" have entirely different histories.
a6bdeab60c
...
1c90dd5d0e
|
@ -30,7 +30,6 @@ Also, tnx Inex for his FunkWhale instance (set by default instance)
|
|||
|
||||
[1]**Warning:** may content _unofficial instances_
|
||||
**Warning 2:** This software not userfriendly. Maybe developerfriendly.
|
||||
**Warning 3:** This software optimized for my needs, this can be confuse you.
|
||||
|
||||
___
|
||||
Simular projects:
|
||||
|
|
|
@ -47,8 +47,6 @@ def list_fav_or_history(pg=None, search=None, scope=None, is_history_view=False)
|
|||
elif 'Play this page' in select:
|
||||
for i in tracks_results:
|
||||
play_track(track=i['track'], multi=True)
|
||||
player_fw_storage.menu_ctx = list_fav_or_history
|
||||
player_fw_storage.menu_ctx_args = [pg]
|
||||
elif len(select) > 1:
|
||||
for i in select:
|
||||
play_track(track=tracks_results[int(
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from src.fw_api import get_tracks
|
||||
from src.fw_tags import list_tags
|
||||
from src.fw_libraries import libraries
|
||||
from src.mpv_control import play_track, player_fw_storage
|
||||
from src.mpv_control import play_track
|
||||
from pyfzf.pyfzf import FzfPrompt
|
||||
from loguru import logger
|
||||
import time
|
||||
|
@ -48,8 +48,6 @@ def list_tracks(pg=None, search=None, tag=None, library=None):
|
|||
elif select == 'Play this page':
|
||||
for i in tracks_results:
|
||||
play_track(track=i, multi=True)
|
||||
player_fw_storage.menu_ctx = list_tracks
|
||||
player_fw_storage.menu_ctx_args = [pg]
|
||||
elif select == 'Play all pages':
|
||||
if tracks_count > 500:
|
||||
yn = input('WARNING: you really want add more than 500 tracks? (y/[n] or number of tracks)\n').lower()
|
||||
|
|
|
@ -33,8 +33,6 @@ if get_config('termux_handle_track_switch_by_volume'):
|
|||
|
||||
class player_fw_storage:
|
||||
storage = {}
|
||||
menu_ctx = None
|
||||
menu_ctx_args = None
|
||||
|
||||
|
||||
@logger.catch
|
||||
|
@ -162,8 +160,6 @@ def player_menu(header='', storage={}):
|
|||
player_items_menu[3] = 'Shuffle'
|
||||
if show_like_button:
|
||||
player_items_menu.append('Like')
|
||||
if player_fw_storage.menu_ctx:
|
||||
player_items_menu.append('Add more tracks')
|
||||
player_items_menu.extend(['Hide artist', 'Exit'])
|
||||
|
||||
select = fzf.prompt(player_items_menu, quote(f"--header=\'{header}\'"))
|
||||
|
@ -200,8 +196,6 @@ def player_menu(header='', storage={}):
|
|||
elif select == 'Like':
|
||||
src.fw_api.favorite_track(
|
||||
player_fw_storage.storage.get(track_url_to_uuid())['id'])
|
||||
elif select == 'Add more tracks':
|
||||
player_fw_storage.menu_ctx(pg=player_fw_storage.menu_ctx_args[0])
|
||||
elif select == 'Hide artist':
|
||||
track = player_fw_storage.storage.get(track_url_to_uuid())
|
||||
player.playlist_remove('current')
|
||||
|
|
Loading…
Reference in New Issue