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