[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)
master
Darkangeel_hd 3 years ago committed by Darkangeel_hd
parent d01c4978ae
commit 1c5c12a527

@ -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,
}

Loading…
Cancel
Save