Name changes

This commit is contained in:
nathom 2021-03-22 11:17:01 -07:00
parent 3b6c1dc0bd
commit b01bf6f5bb
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import click
from qobuz_dl_rewrite.config import Config from qobuz_dl_rewrite.config import Config
from qobuz_dl_rewrite.constants import CACHE_DIR, CONFIG_DIR from qobuz_dl_rewrite.constants import CACHE_DIR, CONFIG_DIR
from qobuz_dl_rewrite.core import QobuzDL from qobuz_dl_rewrite.core import MusicDL
from qobuz_dl_rewrite.utils import init_log from qobuz_dl_rewrite.utils import init_log
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -83,7 +83,7 @@ def download(ctx, items):
* Tidal (album, artist, track, playlist) * Tidal (album, artist, track, playlist)
""" """
config = _get_config(ctx) config = _get_config(ctx)
core = QobuzDL(config) core = MusicDL(config)
for item in items: for item in items:
try: try:
if os.path.isfile(item): if os.path.isfile(item):

View file

@ -24,7 +24,7 @@ Media = Union[Album, Playlist, Artist, Track] # type hint
# TODO: add support for database # TODO: add support for database
class QobuzDL: class MusicDL:
def __init__( def __init__(
self, self,
config: Optional[Config] = None, config: Optional[Config] = None,

View file

@ -6,7 +6,7 @@ from typing import Union
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class QobuzDB: class MusicDB:
"""Simple interface for the downloaded track database.""" """Simple interface for the downloaded track database."""
def __init__(self, db_path: Union[str, os.PathLike]): def __init__(self, db_path: Union[str, os.PathLike]):