From dc9337dd52335d5801dce6b6ef2e8f89227b56f0 Mon Sep 17 00:00:00 2001 From: Darkangeel_hd Date: Wed, 31 Aug 2022 16:17:20 +0200 Subject: [PATCH] [latest.ts] Fix image selector (again) Changed the css selector of the image attribute gets the URL again now haven't tested anything, just a quick fix (again) --- src/controllers/latest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/latest.ts b/src/controllers/latest.ts index 07b2679..ca6160b 100644 --- a/src/controllers/latest.ts +++ b/src/controllers/latest.ts @@ -11,7 +11,7 @@ export const getLatest: Controller = async (req, res) => { return { id: id || null, title: i.querySelector('.animetitles')?.text || null, - image: attr(i, 'img.animeimghv', 'src') || null, + image: attr(i, 'img.animeimghv', 'data-src') || null, type: i.querySelector('.positioning button')?.text.trim() || null, no: parseInt(i.querySelector('.positioning p')?.text.trim() || '0') || null, }