forked from DebaucheryLibrarian/traxxx
Added periodic memory logger.
This commit is contained in:
@@ -65,7 +65,7 @@ async function fetchPhotos(url) {
|
||||
const res = await qu.get(url, '.et_post_gallery');
|
||||
|
||||
if (res.ok) {
|
||||
return res.item.query.urls('a').map(imgUrl => ({
|
||||
return res.item.query.urls('a').map((imgUrl) => ({
|
||||
src: imgUrl,
|
||||
referer: url,
|
||||
}));
|
||||
@@ -89,14 +89,14 @@ async function scrapeScene({ query }, url, channel, include) {
|
||||
release.date = query.date('.vid_date', 'MMMM D, YYYY');
|
||||
release.duration = query.dur('.vid_length');
|
||||
|
||||
release.actors = query.all('.vid_infos a[href*="author/"]').map(actorEl => ({
|
||||
release.actors = query.all('.vid_infos a[href*="author/"]').map((actorEl) => ({
|
||||
name: query.cnt(actorEl),
|
||||
url: query.url(actorEl, null),
|
||||
}));
|
||||
|
||||
release.tags = query.cnts('.vid_infos a[rel="tag"]');
|
||||
|
||||
const posterData = data['@graph']?.find(item => item['@type'] === 'ImageObject');
|
||||
const posterData = data['@graph']?.find((item) => item['@type'] === 'ImageObject');
|
||||
|
||||
const poster = posterData?.url
|
||||
|| query.q('meta[property="og:image"]', 'content')
|
||||
|
||||
Reference in New Issue
Block a user