From a7385028c09bb10387b2c3b2870895e3438ea941 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 18 Oct 2023 03:11:58 +0100 Subject: [PATCH] fix song cover art --- src/components/Player/Scores.svelte | 16 ++++++++-------- src/components/Player/SongCover.svelte | 12 +++++++----- src/components/Player/utils/profile.js | 3 ++- src/network/queues/scoresaber/page-queue.js | 1 + 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/components/Player/Scores.svelte b/src/components/Player/Scores.svelte index ec05f67..c706ef7 100644 --- a/src/components/Player/Scores.svelte +++ b/src/components/Player/Scores.svelte @@ -1,13 +1,13 @@ diff --git a/src/components/Player/utils/profile.js b/src/components/Player/utils/profile.js index e8d58f9..fad6112 100644 --- a/src/components/Player/utils/profile.js +++ b/src/components/Player/utils/profile.js @@ -1,3 +1,4 @@ +import { SS_CDN_HOST } from "../../../network/queues/scoresaber/page-queue"; import tweened from "../../../svelte-utils/tweened"; import { opt } from "../../../utils/js"; @@ -170,7 +171,7 @@ function updateSsBadges(playerData) { if (!opt(playerData, "playerInfo.badges.length")) return null; return playerData.playerInfo.badges.map((b) => ({ - src: `https://cdn.scoresaber.com/badges/${b.image}`, + src: `${SS_CDN_HOST}/badges/${b.image}`, title: b.description, })); } diff --git a/src/network/queues/scoresaber/page-queue.js b/src/network/queues/scoresaber/page-queue.js index ed097e5..5d1233d 100644 --- a/src/network/queues/scoresaber/page-queue.js +++ b/src/network/queues/scoresaber/page-queue.js @@ -8,6 +8,7 @@ import { extractDiffAndType } from "../../../utils/scoresaber/format"; import { PRIORITY, default as createQueue } from "../http-queue"; export const SS_HOST = "https://scoresaber.com"; +export const SS_CDN_HOST = "https://cdn.scoresaber.com"; const SS_CORS_HOST = `${ssrConfig.proxy}/${SS_HOST}`; const RANKEDS_URL = SS_CORS_HOST +