From 75ca50952c5a4cf5def3df93ec0270f4b4e464d0 Mon Sep 17 00:00:00 2001 From: nathom Date: Tue, 29 Jun 2021 11:44:23 -0700 Subject: [PATCH 1/2] Fix #109 Signed-off-by: nathom --- streamrip/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/streamrip/utils.py b/streamrip/utils.py index adf44cb..f03f984 100644 --- a/streamrip/utils.py +++ b/streamrip/utils.py @@ -401,7 +401,7 @@ def get_cover_urls(resp: dict, source: str) -> dict: ) if source == "deezer": - return OrderedDict( + cover_urls = OrderedDict( { sk: resp.get(rk) # size key, resp key for sk, rk in zip( @@ -410,5 +410,9 @@ def get_cover_urls(resp: dict, source: str) -> dict: ) } ) + if cover_urls["large"] is None and resp.get("cover_big") is not None: + cover_urls["large"] = resp["cover_big"] + + return cover_urls raise InvalidSourceError(source) From 54b90baef1f9481f311d0a39843a868a4a9c5717 Mon Sep 17 00:00:00 2001 From: nathom Date: Tue, 29 Jun 2021 11:45:53 -0700 Subject: [PATCH 2/2] Bump version Signed-off-by: nathom --- pyproject.toml | 2 +- streamrip/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 93294d1..2549161 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "streamrip" -version = "0.6.5" +version = "0.6.6" description = "A fast, all-in-one music ripper for Qobuz, Deezer, Tidal, and SoundCloud" authors = ["nathom "] license = "GPL-3.0-only" diff --git a/streamrip/__init__.py b/streamrip/__init__.py index c02b59f..8e38546 100644 --- a/streamrip/__init__.py +++ b/streamrip/__init__.py @@ -1,3 +1,3 @@ """streamrip: the all in one music downloader.""" -__version__ = "0.6.5" +__version__ = "0.6.6"