Merge pull request #365 from reaitten/patch-1

fix: multiple "600" in original cover URL filename
This commit is contained in:
Nathan Thomas 2022-09-26 15:13:00 -07:00 committed by GitHub
commit 3b1a2e67a7
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":