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) {
|
||||
return scenes.map(({ el, query }) => {
|
||||
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.url = query.url('.content_img a, .dvd_info > a, a ~ a');
|
||||
release.title = title?.slice(0, title.match(/starring:/i)?.index || Infinity).trim();
|
||||
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.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),
|
||||
url: query.url(actorEl, null),
|
||||
}));
|
||||
|
@ -319,7 +319,7 @@ function scrapeMovie({ el, query }, url, site) {
|
|||
?.map((scene) => ({ ...scene, movie }))
|
||||
.sort((sceneA, sceneB) => sceneA.date - sceneB.date);
|
||||
|
||||
movie.date = curatedScenes?.[0].date;
|
||||
movie.date = curatedScenes?.[0]?.date;
|
||||
|
||||
return {
|
||||
...movie,
|
||||
|
|
Loading…
Reference in New Issue