diff options
| author | WBRK-dev <[email protected]> | 2024-04-28 11:47:44 +0200 |
|---|---|---|
| committer | WBRK-dev <[email protected]> | 2024-04-28 11:47:44 +0200 |
| commit | 2f0157ab33b21ff3cac33333d65dd1adcc3308ca (patch) | |
| tree | 40a706f28a76e99e33788ec5d72a25dc5d918bdf | |
| parent | f6261199f8e83fd52714055023d033afbc09e53f (diff) | |
| download | aniwatch-api-2f0157ab33b21ff3cac33333d65dd1adcc3308ca.tar.xz aniwatch-api-2f0157ab33b21ff3cac33333d65dd1adcc3308ca.zip | |
chore: removed unnecessary lines
| -rw-r--r-- | src/parsers/animeAboutInfo.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/parsers/animeAboutInfo.ts b/src/parsers/animeAboutInfo.ts index 2467aed..f92b0fc 100644 --- a/src/parsers/animeAboutInfo.ts +++ b/src/parsers/animeAboutInfo.ts @@ -10,8 +10,6 @@ import axios, { AxiosError } from "axios"; import createHttpError, { type HttpError } from "http-errors"; import { load, type CheerioAPI, type SelectorType } from "cheerio"; import { type ScrapedAnimeAboutInfo } from "../types/parsers/index.js"; -import type { AnimePromotionalVideo } from "../types/anime.js"; -import * as fs from "fs/promises"; // /anime/info?id=${anime-id} async function scrapeAnimeAboutInfo( @@ -59,8 +57,6 @@ async function scrapeAnimeAboutInfo( const $: CheerioAPI = load(mainPage.data); - // fs.writeFile("./about.html", mainPage.data); - try { res.anime.info.anilistId = Number( JSON.parse($("body")?.find("#syncData")?.text())?.anilist_id |
