mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-27 21:44:27 -04:00
parent
6380f07123
commit
75ca50952c
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue