refactor
This commit is contained in:
parent
2a00735f72
commit
da0fa2c8dc
@ -6,7 +6,7 @@ from typing import List
|
|||||||
import gc
|
import gc
|
||||||
import musicbrainzngs
|
import musicbrainzngs
|
||||||
|
|
||||||
from . import objects, pages
|
from . import objects, pages, download
|
||||||
from .utils import exception, shared, path_manager
|
from .utils import exception, shared, path_manager
|
||||||
from .utils.config import config, read, write, PATHS_SECTION
|
from .utils.config import config, read, write, PATHS_SECTION
|
||||||
from .utils.shared import MUSIC_DIR, MODIFY_GC, NOT_A_GENRE_REGEX, get_random_message
|
from .utils.shared import MUSIC_DIR, MODIFY_GC, NOT_A_GENRE_REGEX, get_random_message
|
||||||
@ -176,7 +176,7 @@ def cli(
|
|||||||
if verification in agree_inputs:
|
if verification in agree_inputs:
|
||||||
return new_genre
|
return new_genre
|
||||||
|
|
||||||
def next_search(_search: pages.Search, query: str) -> bool:
|
def next_search(_search: download.Search, query: str) -> bool:
|
||||||
"""
|
"""
|
||||||
:param _search:
|
:param _search:
|
||||||
:param query:
|
:param query:
|
||||||
@ -234,7 +234,7 @@ def cli(
|
|||||||
print(f"Downloading to: \"{genre}\"")
|
print(f"Downloading to: \"{genre}\"")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
search = pages.Search()
|
search = download.Search()
|
||||||
|
|
||||||
# directly download url
|
# directly download url
|
||||||
if direct_download_url is not None:
|
if direct_download_url is not None:
|
||||||
|
2
src/music_kraken/download/__init__.py
Normal file
2
src/music_kraken/download/__init__.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
from .search import Search
|
||||||
|
from .download import Download
|
@ -3,8 +3,3 @@ from .musify import Musify
|
|||||||
|
|
||||||
EncyclopaediaMetallum = EncyclopaediaMetallum
|
EncyclopaediaMetallum = EncyclopaediaMetallum
|
||||||
Musify = Musify
|
Musify = Musify
|
||||||
|
|
||||||
from . import download_center
|
|
||||||
|
|
||||||
Search = download_center.Search
|
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
from . import search
|
|
||||||
from . import download
|
|
||||||
|
|
||||||
Download = download.Download
|
|
||||||
Search = search.Search
|
|
Loading…
Reference in New Issue
Block a user