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:
reaitten 2022-09-14 19:12:21 -04:00 committed by GitHub
parent 615a36257b
commit 4af7c6a365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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":