diff --git a/README.md b/README.md index 6be4603b..7c79382a 100644 --- a/README.md +++ b/README.md @@ -110,14 +110,7 @@ git clone https://github.com/DevanAbinaya/Ani-Moopa.git npm install ``` -3. Generate Prisma : - -```bash -npx prisma migrate dev -npx prisma generate -``` - -4. Create `.env` file in the root folder and put this inside the file : +3. Create `.env` file in the root folder and put this inside the file : ```bash ## AniList @@ -142,12 +135,19 @@ DATABASE_URL="Your postgresql connection url" REDIS_URL="rediss://username:password@host:port" ``` -5. Add this endpoint as Redirect Url on AniList Developer : +4. Add this endpoint as Redirect Url on AniList Developer : ```bash https://your-website-domain/api/auth/callback/AniListProvider ``` +5. Generate Prisma : + +```bash +npx prisma migrate dev +npx prisma generate +``` + 6. Start local server : ```bash diff --git a/components/anime/viewMode/thumbnailDetail.js b/components/anime/viewMode/thumbnailDetail.js index 494a89f5..d8cbfccb 100644 --- a/components/anime/viewMode/thumbnailDetail.js +++ b/components/anime/viewMode/thumbnailDetail.js @@ -18,6 +18,12 @@ export default function ThumbnailDetail({ let prog = (time / duration) * 100; if (prog > 90) prog = 100; + const parsedImage = image + ? image?.includes("null") + ? info.coverImage?.extraLarge + : image + : info.coverImage?.extraLarge || null; + return (
- {image && ( + {parsedImage && ( {`Episode 90) prog = 100; + + const parsedImage = image + ? image?.includes("null") + ? info.coverImage?.extraLarge + : image + : info.coverImage?.extraLarge || null; return ( {/*
*/} - {image && ( + {parsedImage && ( {`Episode episode-bade -
+