diff --git a/funkwhale_cli.py b/funkwhale_cli.py index 759bd26..a176bde 100755 --- a/funkwhale_cli.py +++ b/funkwhale_cli.py @@ -1,6 +1,6 @@ #!/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_artists import list_artists from src.fw_albums import list_albums @@ -13,7 +13,6 @@ import src.mpv_control import json import os from shlex import quote -from loguru import logger from pyfzf.pyfzf import FzfPrompt fzf = FzfPrompt() @@ -32,7 +31,6 @@ def main(): 'Playlists', 'Favorites', 'Recently listened', - 'Search', 'About instance', 'Switch instance'] try: @@ -83,13 +81,6 @@ def main(): list_fav_or_history() if selected == 'Recently listened': 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': with open('config.json', 'rt') as f: conf = json.loads(f.read())