From 927c2766d7ee3b7d346135116f48e69a98d6524e Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Wed, 29 Mar 2023 17:24:02 +0200 Subject: [PATCH] added cli to __init__.py --- src/music_kraken/__init__.py | 11 +++++------ src/music_kraken/__main__.py | 5 ++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/music_kraken/__init__.py b/src/music_kraken/__init__.py index 80788da..6fb34ad 100644 --- a/src/music_kraken/__init__.py +++ b/src/music_kraken/__init__.py @@ -7,7 +7,6 @@ import os from . import ( objects, - database, pages ) @@ -17,8 +16,6 @@ from .utils.shared import ( NOT_A_GENRE ) -# from .lyrics import lyrics - """ At the start I modify the garbage collector to run a bit fewer times. @@ -39,6 +36,8 @@ musicbrainzngs.set_useragent("metadata receiver", "0.1", "https://github.com/HeI def cli(): - print("HelloWorld") - - + search = pages.Search() + + while True: + search.next_input(input(">> ")) + print(search) diff --git a/src/music_kraken/__main__.py b/src/music_kraken/__main__.py index 19dc143..2922d81 100644 --- a/src/music_kraken/__main__.py +++ b/src/music_kraken/__main__.py @@ -2,6 +2,5 @@ import music_kraken if __name__ == "__main__": - music_kraken.cli(start_at=0, only_lyrics=False) - # Youtube.fetch_audio({'title': 'dfas', '': '', 'isrc': ''}) - # Youtube.fetch_audio({'title': 'dfas', 'url': '', 'file': 'dasf', 'isrc': ''}) + music_kraken.cli() +