Skip to content

Commit c810567

Browse files
committed
feat: slim search query and add pagination params
- Replace heavy shared fragments in search.graphql with inline fields containing only data needed for list rendering (id, title, cover, contributors, isFavorite, etc.) - Remove podcastEpisodes from search (unused, always first=0) - Reduce contributors(first: 10) to contributors(first: 3) in search - Add $moodsAfter/$genresAfter params to get_flow_configs.graphql - Add $after param to get_smart_tracklist.graphql This significantly reduces query complexity, avoiding Deezer's 25,000 complexity limit when searching multiple entity types simultaneously.
1 parent 54b4284 commit c810567

6 files changed

Lines changed: 319 additions & 236 deletions

File tree

deezer_python_gql/generated/__init__.py

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -564,30 +564,40 @@
564564
SearchSearchResultsAlbums,
565565
SearchSearchResultsAlbumsEdges,
566566
SearchSearchResultsAlbumsEdgesNode,
567+
SearchSearchResultsAlbumsEdgesNodeContributors,
568+
SearchSearchResultsAlbumsEdgesNodeContributorsEdges,
569+
SearchSearchResultsAlbumsEdgesNodeContributorsEdgesNodeArtist,
570+
SearchSearchResultsAlbumsEdgesNodeCover,
567571
SearchSearchResultsAlbumsPageInfo,
568572
SearchSearchResultsArtists,
569573
SearchSearchResultsArtistsEdges,
570574
SearchSearchResultsArtistsEdgesNode,
575+
SearchSearchResultsArtistsEdgesNodePicture,
571576
SearchSearchResultsArtistsPageInfo,
572577
SearchSearchResultsLivestreams,
573578
SearchSearchResultsLivestreamsEdges,
574579
SearchSearchResultsLivestreamsEdgesNode,
580+
SearchSearchResultsLivestreamsEdgesNodeCover,
575581
SearchSearchResultsLivestreamsPageInfo,
576582
SearchSearchResultsPlaylists,
577583
SearchSearchResultsPlaylistsEdges,
578584
SearchSearchResultsPlaylistsEdgesNode,
585+
SearchSearchResultsPlaylistsEdgesNodeOwner,
586+
SearchSearchResultsPlaylistsEdgesNodePicture,
579587
SearchSearchResultsPlaylistsPageInfo,
580-
SearchSearchResultsPodcastEpisodes,
581-
SearchSearchResultsPodcastEpisodesEdges,
582-
SearchSearchResultsPodcastEpisodesEdgesNode,
583-
SearchSearchResultsPodcastEpisodesPageInfo,
584588
SearchSearchResultsPodcasts,
585589
SearchSearchResultsPodcastsEdges,
586590
SearchSearchResultsPodcastsEdgesNode,
591+
SearchSearchResultsPodcastsEdgesNodeCover,
587592
SearchSearchResultsPodcastsPageInfo,
588593
SearchSearchResultsTracks,
589594
SearchSearchResultsTracksEdges,
590595
SearchSearchResultsTracksEdgesNode,
596+
SearchSearchResultsTracksEdgesNodeAlbum,
597+
SearchSearchResultsTracksEdgesNodeAlbumCover,
598+
SearchSearchResultsTracksEdgesNodeContributors,
599+
SearchSearchResultsTracksEdgesNodeContributorsEdges,
600+
SearchSearchResultsTracksEdgesNodeContributorsEdgesNodeArtist,
591601
SearchSearchResultsTracksPageInfo,
592602
)
593603
from .search_flows import (
@@ -1060,30 +1070,40 @@
10601070
"SearchSearchResultsAlbums",
10611071
"SearchSearchResultsAlbumsEdges",
10621072
"SearchSearchResultsAlbumsEdgesNode",
1073+
"SearchSearchResultsAlbumsEdgesNodeContributors",
1074+
"SearchSearchResultsAlbumsEdgesNodeContributorsEdges",
1075+
"SearchSearchResultsAlbumsEdgesNodeContributorsEdgesNodeArtist",
1076+
"SearchSearchResultsAlbumsEdgesNodeCover",
10631077
"SearchSearchResultsAlbumsPageInfo",
10641078
"SearchSearchResultsArtists",
10651079
"SearchSearchResultsArtistsEdges",
10661080
"SearchSearchResultsArtistsEdgesNode",
1081+
"SearchSearchResultsArtistsEdgesNodePicture",
10671082
"SearchSearchResultsArtistsPageInfo",
10681083
"SearchSearchResultsLivestreams",
10691084
"SearchSearchResultsLivestreamsEdges",
10701085
"SearchSearchResultsLivestreamsEdgesNode",
1086+
"SearchSearchResultsLivestreamsEdgesNodeCover",
10711087
"SearchSearchResultsLivestreamsPageInfo",
10721088
"SearchSearchResultsPlaylists",
10731089
"SearchSearchResultsPlaylistsEdges",
10741090
"SearchSearchResultsPlaylistsEdgesNode",
1091+
"SearchSearchResultsPlaylistsEdgesNodeOwner",
1092+
"SearchSearchResultsPlaylistsEdgesNodePicture",
10751093
"SearchSearchResultsPlaylistsPageInfo",
1076-
"SearchSearchResultsPodcastEpisodes",
1077-
"SearchSearchResultsPodcastEpisodesEdges",
1078-
"SearchSearchResultsPodcastEpisodesEdgesNode",
1079-
"SearchSearchResultsPodcastEpisodesPageInfo",
10801094
"SearchSearchResultsPodcasts",
10811095
"SearchSearchResultsPodcastsEdges",
10821096
"SearchSearchResultsPodcastsEdgesNode",
1097+
"SearchSearchResultsPodcastsEdgesNodeCover",
10831098
"SearchSearchResultsPodcastsPageInfo",
10841099
"SearchSearchResultsTracks",
10851100
"SearchSearchResultsTracksEdges",
10861101
"SearchSearchResultsTracksEdgesNode",
1102+
"SearchSearchResultsTracksEdgesNodeAlbum",
1103+
"SearchSearchResultsTracksEdgesNodeAlbumCover",
1104+
"SearchSearchResultsTracksEdgesNodeContributors",
1105+
"SearchSearchResultsTracksEdgesNodeContributorsEdges",
1106+
"SearchSearchResultsTracksEdgesNodeContributorsEdgesNodeArtist",
10871107
"SearchSearchResultsTracksPageInfo",
10881108
"TrackContributorRoles",
10891109
"TrackFields",

0 commit comments

Comments
 (0)