mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-24 22:21:28 +00:00
removed search from main menu, is just useless
This commit is contained in:
parent
c93a2f0ee5
commit
95874e2289
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from src.fw_api import current_instance, federate_search_by_url, get_instance_settings
|
from src.fw_api import current_instance, get_instance_settings
|
||||||
from src.fw_radios import list_radios
|
from src.fw_radios import list_radios
|
||||||
from src.fw_artists import list_artists
|
from src.fw_artists import list_artists
|
||||||
from src.fw_albums import list_albums
|
from src.fw_albums import list_albums
|
||||||
|
@ -13,7 +13,6 @@ import src.mpv_control
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
from shlex import quote
|
from shlex import quote
|
||||||
from loguru import logger
|
|
||||||
from pyfzf.pyfzf import FzfPrompt
|
from pyfzf.pyfzf import FzfPrompt
|
||||||
|
|
||||||
fzf = FzfPrompt()
|
fzf = FzfPrompt()
|
||||||
|
@ -32,7 +31,6 @@ def main():
|
||||||
'Playlists',
|
'Playlists',
|
||||||
'Favorites',
|
'Favorites',
|
||||||
'Recently listened',
|
'Recently listened',
|
||||||
'Search',
|
|
||||||
'About instance',
|
'About instance',
|
||||||
'Switch instance']
|
'Switch instance']
|
||||||
try:
|
try:
|
||||||
|
@ -83,13 +81,6 @@ def main():
|
||||||
list_fav_or_history()
|
list_fav_or_history()
|
||||||
if selected == 'Recently listened':
|
if selected == 'Recently listened':
|
||||||
list_fav_or_history(is_history_view=True)
|
list_fav_or_history(is_history_view=True)
|
||||||
if selected == 'Search':
|
|
||||||
search_type = fzf.prompt(('Federated', 'All types'))[0]
|
|
||||||
if search_type == 'Federated':
|
|
||||||
print('Input url:')
|
|
||||||
returned_obj = federate_search_by_url(input())
|
|
||||||
logger.info(str(returned_obj))
|
|
||||||
|
|
||||||
if selected == 'Switch instance':
|
if selected == 'Switch instance':
|
||||||
with open('config.json', 'rt') as f:
|
with open('config.json', 'rt') as f:
|
||||||
conf = json.loads(f.read())
|
conf = json.loads(f.read())
|
||||||
|
|
Loading…
Reference in a new issue