Skip to content

Commit

Permalink
add: genres
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaBhattacharjee committed Apr 10, 2024
1 parent 8e30d67 commit 2ad48eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<ProfileProvider>
<UserProvider>
<Toaster position="top-right" />
<NextTopLoader color="#fff" initialPosition={0.08} crawlSpeed={200} height={3} crawl={true} showSpinner={true} easing="ease" speed={200} zIndex={1600} showAtBottom={false} />
<NextTopLoader color="#fff" initialPosition={0.08} crawlSpeed={200} height={3} crawl={true} easing="ease" speed={200} zIndex={1600} showAtBottom={false} />
<main className="min-h-screen w-full text-white bg-black">
<TopNavbar />
<SideBar />
Expand Down
4 changes: 2 additions & 2 deletions src/lib/AnimeFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const getAnimeDetails = async (animeid: number) => {
if (cachedData) {
return cachedData;
}
const response = await fetch(`${AnifyApi}/info/${animeid}?fields=[coverImage,status , title , characters , relations , averageRating , description , type , format , year , totalEpisodes]`, {
const response = await fetch(`${AnifyApi}/info/${animeid}?fields=[coverImage,status , genres,title , characters , relations , averageRating , description , type , format , year , totalEpisodes]`, {
cache: "no-cache",
});
const data = await response.json();
Expand All @@ -172,7 +172,7 @@ export const getAnimeRelation = async (animeid: number) => {
if (cachedData) {
return cachedData;
}
const response = await fetch(`${AnifyApi}/relations/${animeid}?fields=[id,coverImage, bannerImage , status , currentEpisode , totalEpisodes , title]`);
const response = await fetch(`${AnifyApi}/relations/${animeid}?fields=[id,coverImage, bannerImage , status ,currentEpisode , totalEpisodes , title]`);
const data = await response.json();
myCache.set(cacheKey, data);
return data;
Expand Down

0 comments on commit 2ad48eb

Please sign in to comment.