Compare commits
No commits in common. "334e6958ba0d04700e5ba1b97d392c87c0d9bb11" and "9fc83cc5fcb02051971c2a264fc039cac965c18f" have entirely different histories.
334e6958ba
...
9fc83cc5fc
2 changed files with 8 additions and 11 deletions
|
@ -23,10 +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("/")}`.replace(
|
||||
"1280x1280",
|
||||
"160x160",
|
||||
); // last bit assumes tidal.
|
||||
return `https://wsrv.nl/?w=${size === "large" ? 120 : 40}&url=https://${image.split("/").slice(3).join("/")}`;
|
||||
}
|
||||
|
||||
if (image.startsWith("mp:")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue