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)) {
|
if (this.videoArtworkCache.has(cacheKey)) {
|
||||||
return this.videoArtworkCache.get(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 {
|
try {
|
||||||
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);
|
||||||
|
|
@ -257,10 +258,12 @@ export class MusicAPI {
|
||||||
};
|
};
|
||||||
this.videoArtworkCache.set(cacheKey, result);
|
this.videoArtworkCache.set(cacheKey, result);
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.warn('Failed to fetch video artwork:', error);
|
console.warn('Failed to fetch video artwork:', error);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
getArtistPictureUrl(id, size = '320') {
|
getArtistPictureUrl(id, size = '320') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue