mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-09 14:11:55 -04:00
Misc renames
This commit is contained in:
parent
41223c1237
commit
bd52681623
3 changed files with 9 additions and 9 deletions
|
@ -9,7 +9,7 @@ import click
|
|||
from .clients import DeezerClient, QobuzClient, TidalClient
|
||||
from .config import Config
|
||||
from .constants import CONFIG_PATH, DB_PATH, URL_REGEX
|
||||
from .db import QobuzDB
|
||||
from .db import MusicDB
|
||||
from .downloader import Album, Artist, Playlist, Track, Label
|
||||
from .exceptions import AuthenticationError, ParsingError
|
||||
from .utils import capitalize
|
||||
|
@ -44,9 +44,9 @@ class MusicDL:
|
|||
}
|
||||
|
||||
if database is None:
|
||||
self.db = QobuzDB(DB_PATH)
|
||||
self.db = MusicDB(DB_PATH)
|
||||
else:
|
||||
assert isinstance(database, QobuzDB)
|
||||
assert isinstance(database, MusicDB)
|
||||
self.db = database
|
||||
|
||||
def prompt_creds(self, source: str):
|
||||
|
|
|
@ -10,7 +10,7 @@ class MusicDB:
|
|||
"""Simple interface for the downloaded track database."""
|
||||
|
||||
def __init__(self, db_path: Union[str, os.PathLike]):
|
||||
"""Create a QobuzDB object
|
||||
"""Create a MusicDB object
|
||||
|
||||
:param db_path: filepath of the database
|
||||
:type db_path: Union[str, os.PathLike]
|
||||
|
|
|
@ -23,7 +23,7 @@ from .constants import (
|
|||
FOLDER_FORMAT,
|
||||
TRACK_FORMAT,
|
||||
)
|
||||
from .db import QobuzDB
|
||||
from .db import MusicDB
|
||||
from .exceptions import (
|
||||
InvalidQuality,
|
||||
InvalidSourceError,
|
||||
|
@ -139,7 +139,7 @@ class Track:
|
|||
quality: int = 7,
|
||||
parent_folder: str = "Downloads",
|
||||
progress_bar: bool = True,
|
||||
database: QobuzDB = None,
|
||||
database: MusicDB = None,
|
||||
):
|
||||
"""
|
||||
Download the track.
|
||||
|
@ -725,7 +725,7 @@ class Album(Tracklist):
|
|||
tag_tracks: bool = True,
|
||||
cover_key: str = "large",
|
||||
embed_cover: bool = False,
|
||||
database: QobuzDB = None,
|
||||
database: MusicDB = None,
|
||||
):
|
||||
"""Download all of the tracks in the album.
|
||||
|
||||
|
@ -935,7 +935,7 @@ class Playlist(Tracklist):
|
|||
quality: int = 6,
|
||||
filters: Callable = None,
|
||||
embed_cover: bool = False,
|
||||
database: QobuzDB = None,
|
||||
database: MusicDB = None,
|
||||
):
|
||||
"""Download and tag all of the tracks.
|
||||
|
||||
|
@ -1052,7 +1052,7 @@ class Artist(Tracklist):
|
|||
no_repeats: bool = False,
|
||||
quality: int = 6,
|
||||
embed_cover: bool = False,
|
||||
database: QobuzDB = None,
|
||||
database: MusicDB = None,
|
||||
):
|
||||
"""Download all albums in the discography.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue