Replace deprecated hermes protocol FIX #199

This commit is contained in:
Julien Maille 2022-03-26 14:19:13 +01:00
parent 2e55b23b44
commit 145cfe9b53

View file

@ -460,8 +460,8 @@ Dribbblish.on("ready", () => {
/* js */
async function getAlbumRelease(uri) {
const info = await Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
return { year: info.year, month: (info.month ?? 1) - 1, day: info.day ?? 1 };
const info = await Spicetify.CosmosAsync.get(`https://api.spotify.com/v1/albums/${uri}`);
return { year: info.release_date };
}
async function getGenres(uri) {