diff --git a/streamrip/clients.py b/streamrip/clients.py index 0016bd5..dd2056a 100644 --- a/streamrip/clients.py +++ b/streamrip/clients.py @@ -12,16 +12,16 @@ import click from .constants import ( AGENT, AVAILABLE_QUALITY_IDS, + DEEZER_BASE, DEEZER_MAX_Q, + QOBUZ_BASE, QOBUZ_FEATURED_KEYS, + SOUNDCLOUD_BASE, SOUNDCLOUD_CLIENT_ID, + TIDAL_AUTH_URL, + TIDAL_BASE, TIDAL_CLIENT_INFO, TIDAL_MAX_Q, - QOBUZ_BASE, - TIDAL_BASE, - TIDAL_AUTH_URL, - DEEZER_BASE, - SOUNDCLOUD_BASE, ) from .exceptions import ( AuthenticationError, diff --git a/streamrip/config.py b/streamrip/config.py index 2962292..e6328de 100644 --- a/streamrip/config.py +++ b/streamrip/config.py @@ -117,8 +117,8 @@ class Config: def update(self): self.reset() temp = copy.deepcopy(self.defaults) - temp['qobuz'] = self.file['qobuz'] - temp['tidal'] = self.file['tidal'] + temp["qobuz"] = self.file["qobuz"] + temp["tidal"] = self.file["tidal"] self.dump(temp) def save(self): @@ -188,7 +188,7 @@ class Config: return self.qobuz_creds if source == "tidal": return self.tidal_creds - if source == "deezer" or source == 'soundcloud': + if source == "deezer" or source == "soundcloud": return dict() raise InvalidSourceError(source) diff --git a/streamrip/constants.py b/streamrip/constants.py index 53322ef..0ccc05b 100644 --- a/streamrip/constants.py +++ b/streamrip/constants.py @@ -178,4 +178,3 @@ DEEZER_BASE = "https://api.deezer.com" DEEZER_DL = "http://dz.loaderapp.info/deezer" SOUNDCLOUD_BASE = "https://api-v2.soundcloud.com" - diff --git a/streamrip/core.py b/streamrip/core.py index bd2acaa..4d5e13b 100644 --- a/streamrip/core.py +++ b/streamrip/core.py @@ -138,7 +138,9 @@ class MusicDL(list): try: arguments = self._get_download_args() except KeyError: - click.secho("Updating config file... Please run the command again.", fg='magenta') + click.secho( + "Updating config file... Please run the command again.", fg="magenta" + ) self.config.update() exit() except Exception as err: