artwork.boidu.dev changes
This commit is contained in:
parent
213d5e36c2
commit
ecda48d0b6
1 changed files with 4 additions and 1 deletions
|
|
@ -245,7 +245,8 @@ export class MusicAPI {
|
|||
if (this.videoArtworkCache.has(cacheKey)) {
|
||||
return this.videoArtworkCache.get(cacheKey);
|
||||
}
|
||||
|
||||
// artwork.boidu.dev developer asked us to disable his API for the time being due to rate limits.
|
||||
/*
|
||||
try {
|
||||
const url = `https://artwork.boidu.dev/?s=${encodeURIComponent(title)}&a=${encodeURIComponent(artist)}`;
|
||||
const response = await fetch(url);
|
||||
|
|
@ -257,10 +258,12 @@ export class MusicAPI {
|
|||
};
|
||||
this.videoArtworkCache.set(cacheKey, result);
|
||||
return result;
|
||||
|
||||
} catch (error) {
|
||||
console.warn('Failed to fetch video artwork:', error);
|
||||
return null;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
getArtistPictureUrl(id, size = '320') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue