Updated Jules Jordan scraper for Manuel Ferrara and Girl Girl.
This commit is contained in:
parent
a484396db4
commit
26d15c0a6f
|
@ -136,15 +136,15 @@ function getEntryId(html) {
|
||||||
function scrapeAll(scenes, site, entryIdFromTitle) {
|
function scrapeAll(scenes, site, entryIdFromTitle) {
|
||||||
return scenes.map(({ el, query }) => {
|
return scenes.map(({ el, query }) => {
|
||||||
const release = {};
|
const release = {};
|
||||||
const title = query.cnt('.content_img div, .dvd_info > a, a ~ a');
|
const title = query.cnt('.content_img div, .dvd_info > a, a.update_title, a[title*=" "]');
|
||||||
|
|
||||||
release.title = title.slice(0, title.match(/starring:/i)?.index || Infinity).trim();
|
release.title = title?.slice(0, title.match(/starring:/i)?.index || Infinity).trim();
|
||||||
release.url = query.url('.content_img a, .dvd_info > a, a ~ a');
|
release.url = query.url('.content_img a, .dvd_info > a, a.update_title, a[title]');
|
||||||
release.date = query.date('.update_date', 'MM/DD/YYYY');
|
release.date = query.date('.update_date', 'MM/DD/YYYY');
|
||||||
|
|
||||||
release.entryId = (entryIdFromTitle && slugify(release.title)) || el.dataset.setid || query.q('.rating_box')?.dataset.id;
|
release.entryId = (entryIdFromTitle && slugify(release.title)) || el.dataset.setid || query.q('.rating_box')?.dataset.id;
|
||||||
|
|
||||||
release.actors = query.all('.content_img .update_models a').map((actorEl) => ({
|
release.actors = query.all('.content_img .update_models a, .update_models a').map((actorEl) => ({
|
||||||
name: query.cnt(actorEl),
|
name: query.cnt(actorEl),
|
||||||
url: query.url(actorEl, null),
|
url: query.url(actorEl, null),
|
||||||
}));
|
}));
|
||||||
|
@ -319,7 +319,7 @@ function scrapeMovie({ el, query }, url, site) {
|
||||||
?.map((scene) => ({ ...scene, movie }))
|
?.map((scene) => ({ ...scene, movie }))
|
||||||
.sort((sceneA, sceneB) => sceneA.date - sceneB.date);
|
.sort((sceneA, sceneB) => sceneA.date - sceneB.date);
|
||||||
|
|
||||||
movie.date = curatedScenes?.[0].date;
|
movie.date = curatedScenes?.[0]?.date;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...movie,
|
...movie,
|
||||||
|
|
Loading…
Reference in New Issue