From fe51810a433ac967015d3f62c02b424a5848ad2c Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Tue, 8 Nov 2022 21:08:24 +0300 Subject: [PATCH] Albums view --- funkwhale_cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/funkwhale_cli.py b/funkwhale_cli.py index 6a476e4..eab28ac 100644 --- a/funkwhale_cli.py +++ b/funkwhale_cli.py @@ -1,6 +1,7 @@ from src.fw_api import s, select_instance, instance from src.fw_radios import list_radios from src.fw_artists import list_artists +from src.fw_albums import list_albums import json, sys from loguru import logger from pyfzf.pyfzf import FzfPrompt @@ -15,6 +16,7 @@ def main(): while True: menu = ['Radios', 'Artists', + 'Albums', 'Switch instance'] if not s.headers.get('Authorization'): menu.append('Sign in') @@ -25,6 +27,8 @@ def main(): list_radios() if selected == 'Artists': list_artists() + if selected == 'Albums': + list_albums() if selected == 'Switch instance': with open('config.json', 'rt') as f: conf = json.loads(f.read())