From 9a5754fdba9d778f820fe89b44d1e21ca9f0bb4d Mon Sep 17 00:00:00 2001 From: Factiven Date: Tue, 16 May 2023 22:40:02 +0700 Subject: Update v3.5.7 (#12) * Merge request (#11) * Update v3.5.5 > Now Skip button will hide if player is not in focused state. > Added some options to player. > Manga images should be displayed now. * Update videoPlayer.js * Revamp hero section #1 * UI Improvement > Updating main page > Updated Genres selection using params method > Added search bar v1.0 on main page ( [ctrl + space] to access search bar ) * update meta * Update [...id].js * Update [...id].js > Back to ssr I guess * update episode selector * Update [...info].js * Update UI > Added On-Going section for AniList user * Update content.js * added dynamic og * Update og.jsx * Update og * Update og.jsx * update og and id fallback > Added fallback for anime info if it's not found * Update v3.5.7 > Added On-Going section for AniList user > Added Genre section > Added dynamic Open Graph when sharing anime > Added Episode Selector above information --- lib/useAnilist.js | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) (limited to 'lib/useAnilist.js') diff --git a/lib/useAnilist.js b/lib/useAnilist.js index 6a0a986..fc25902 100644 --- a/lib/useAnilist.js +++ b/lib/useAnilist.js @@ -20,6 +20,10 @@ export function useAniList(session, stats) { score media { id + nextAiringEpisode { + timeUntilAiring + episode + } title { english romaji @@ -104,34 +108,7 @@ export function useAniList(session, stats) { "Content-Type": "application/json", }, body: JSON.stringify({ - query: ` - query ($username: String, $status: MediaListStatus) { - MediaListCollection(userName: $username, type: ANIME, status: $status) { - lists { - status - name - entries { - id - mediaId - status - progress - score - media { - id - title { - english - romaji - } - episodes - coverImage { - large - } - } - } - } - } - } - `, + query: queryMedia, variables: { username: username, status: statuss?.stats, -- cgit v1.2.3