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" 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)