fix: adjust image URL size for external assets
This commit is contained in:
parent
9fc83cc5fc
commit
8a87799f20
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ const getImageUrl = (activity: LanyardActivity, size: "large" | "small") => {
|
|||
if (!image) return null;
|
||||
|
||||
if (image.startsWith("mp:external")) {
|
||||
return `https://wsrv.nl/?w=${size === "large" ? 120 : 40}&url=https://${image.split("/").slice(3).join("/")}`;
|
||||
return `https://wsrv.nl/?w=${size === "large" ? 120 : 40}&url=https://${image.split("/").slice(3).join("/")}`.replace("1280x1280", "160x160"); // last bit assumes tidal.
|
||||
}
|
||||
|
||||
if (image.startsWith("mp:")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue