From 2f0157ab33b21ff3cac33333d65dd1adcc3308ca Mon Sep 17 00:00:00 2001 From: WBRK-dev Date: Sun, 28 Apr 2024 11:47:44 +0200 Subject: chore: removed unnecessary lines --- src/parsers/animeAboutInfo.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3