Skip to content

Commit 8ec27dd

Browse files
authored
fix(shuffle+): lower limit & bring back queryArtistOverview (#3001)
1 parent 95969fb commit 8ec27dd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Extensions/shuffle+.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333

334334
async function fetchAlbumTracks(uri, includeMetadata = false) {
335335
const { queryAlbumTracks } = Spicetify.GraphQL.Definitions;
336-
const { data, errors } = await Spicetify.GraphQL.Request(queryAlbumTracks, { uri, offset: 0, limit: 500 });
336+
const { data, errors } = await Spicetify.GraphQL.Request(queryAlbumTracks, { uri, offset: 0, limit: 100 });
337337

338338
if (errors) throw errors[0].message;
339339
if (data.albumUnion.playability.playable === false) throw "Album is not playable";
@@ -368,7 +368,14 @@
368368
}
369369

370370
async function fetchArtistTracks(uri) {
371-
const { queryArtistDiscographyAll, queryArtistOverview } = Spicetify.GraphQL.Definitions;
371+
const { queryArtistDiscographyAll } = Spicetify.GraphQL.Definitions;
372+
// Definition from older Spotify version
373+
const queryArtistOverview = {
374+
name: "queryArtistOverview",
375+
operation: "query",
376+
sha256Hash: "35648a112beb1794e39ab931365f6ae4a8d45e65396d641eeda94e4003d41497",
377+
value: null
378+
};
372379

373380
const discography = await Spicetify.GraphQL.Request(queryArtistDiscographyAll, {
374381
uri,

0 commit comments

Comments
 (0)