mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-09 14:11:55 -04:00
fix: multiple "600" in original cover URL filename
- Fixes a minor issue when trying to set a Qobuz original cover URL.
Streamrip replaces all occurrences of `600` when setting `cover_urls["original"]` which leads to raising an error when downloading the cover art for this album:
0060040678
This commit is contained in:
parent
615a36257b
commit
4af7c6a365
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ def get_cover_urls(resp: dict, source: str) -> Optional[dict]:
|
|||
|
||||
if source == "qobuz":
|
||||
cover_urls = resp["image"]
|
||||
cover_urls["original"] = cover_urls["large"].replace("600", "org")
|
||||
cover_urls["original"] = "org".join(cover_urls["large"].rsplit('600', 1))
|
||||
return cover_urls
|
||||
|
||||
if source == "tidal":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue