From d35c15370e079c18fac526788b1bb6e76e0b5991 Mon Sep 17 00:00:00 2001 From: binimum Date: Wed, 8 Apr 2026 22:19:49 +0100 Subject: [PATCH 1/2] fix: temporarily disable video artwork at maintainer's request --- js/music-api.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/music-api.js b/js/music-api.js index 1590452..e5b2570 100644 --- a/js/music-api.js +++ b/js/music-api.js @@ -247,6 +247,10 @@ export class MusicAPI { } try { + /* + Maintainer of artwork.boidu.dev has asked for his API to be removed for the time being due to spam + */ + /* const url = `https://artwork.boidu.dev/?s=${encodeURIComponent(title)}&a=${encodeURIComponent(artist)}`; const response = await fetch(url); if (!response.ok) return null; @@ -257,6 +261,8 @@ export class MusicAPI { }; this.videoArtworkCache.set(cacheKey, result); return result; + */ + throw new Error("Video artwork is disabled for now."); } catch (error) { console.warn('Failed to fetch video artwork:', error); return null; From 4394cce61dfa7b284a2868b49bb420c09f1124e3 Mon Sep 17 00:00:00 2001 From: binimum <61615730+binimum@users.noreply.github.com> Date: Wed, 8 Apr 2026 21:20:29 +0000 Subject: [PATCH 2/2] style: auto-fix linting issues --- js/music-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/music-api.js b/js/music-api.js index e5b2570..fe7384b 100644 --- a/js/music-api.js +++ b/js/music-api.js @@ -262,7 +262,7 @@ export class MusicAPI { this.videoArtworkCache.set(cacheKey, result); return result; */ - throw new Error("Video artwork is disabled for now."); + throw new Error('Video artwork is disabled for now.'); } catch (error) { console.warn('Failed to fetch video artwork:', error); return null;