Merge branch 'main' of github.com:monochrome-music/monochrome
This commit is contained in:
commit
e06842c1cd
1 changed files with 6 additions and 0 deletions
|
|
@ -247,6 +247,10 @@ export class MusicAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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 url = `https://artwork.boidu.dev/?s=${encodeURIComponent(title)}&a=${encodeURIComponent(artist)}`;
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
if (!response.ok) return null;
|
if (!response.ok) return null;
|
||||||
|
|
@ -257,6 +261,8 @@ export class MusicAPI {
|
||||||
};
|
};
|
||||||
this.videoArtworkCache.set(cacheKey, result);
|
this.videoArtworkCache.set(cacheKey, result);
|
||||||
return result;
|
return result;
|
||||||
|
*/
|
||||||
|
throw new Error('Video artwork is disabled for now.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.warn('Failed to fetch video artwork:', error);
|
console.warn('Failed to fetch video artwork:', error);
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue