Updated Jules Jordan scraper for Sperm Swallowers and The Ass Factory.
This commit is contained in:
parent
26d15c0a6f
commit
ec4e7bc12a
|
@ -136,10 +136,10 @@ 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.update_title, a[title*=" "]');
|
const title = query.cnt('.content_img div, .dvd_info > a, a.update_title, a[title] + a[title]') || query.cnt('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.update_title, a[title]');
|
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;
|
||||||
|
|
Loading…
Reference in New Issue