mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-18 06:01:28 +00:00
Replace deprecated hermes protocol FIX #199
This commit is contained in:
parent
2e55b23b44
commit
145cfe9b53
1 changed files with 2 additions and 2 deletions
|
|
@ -460,8 +460,8 @@ Dribbblish.on("ready", () => {
|
||||||
|
|
||||||
/* js */
|
/* js */
|
||||||
async function getAlbumRelease(uri) {
|
async function getAlbumRelease(uri) {
|
||||||
const info = await Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
|
const info = await Spicetify.CosmosAsync.get(`https://api.spotify.com/v1/albums/${uri}`);
|
||||||
return { year: info.year, month: (info.month ?? 1) - 1, day: info.day ?? 1 };
|
return { year: info.release_date };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getGenres(uri) {
|
async function getGenres(uri) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue