forked from DebaucheryLibrarian/traxxx
Added parameters column to sites database, fixes Perv City scraper. Getting shoot ID from all existing scrapers.
This commit is contained in:
@@ -15,6 +15,8 @@ function scrapeLatest(html, site) {
|
||||
const url = sceneLinkElement.attr('href');
|
||||
const title = sceneLinkElement.text();
|
||||
|
||||
const shootId = $(element).attr('data-setid');
|
||||
|
||||
const date = moment
|
||||
.utc($(element).find('.update_date').text(), 'MM/DD/YYYY')
|
||||
.toDate();
|
||||
@@ -25,6 +27,7 @@ function scrapeLatest(html, site) {
|
||||
|
||||
return {
|
||||
url,
|
||||
shootId,
|
||||
title,
|
||||
actors,
|
||||
date,
|
||||
@@ -38,6 +41,8 @@ function scrapeUpcoming(html, site) {
|
||||
const scenesElements = $('#coming_soon_carousel').find('.table').toArray();
|
||||
|
||||
return scenesElements.map((element) => {
|
||||
const shootId = $(element).find('.upcoming_updates_thumb').attr('id').match(/\d+/)[0];
|
||||
|
||||
const details = $(element).find('.update_details_comingsoon')
|
||||
.eq(1)
|
||||
.children()
|
||||
@@ -59,6 +64,7 @@ function scrapeUpcoming(html, site) {
|
||||
|
||||
return {
|
||||
url: null,
|
||||
shootId,
|
||||
title,
|
||||
actors,
|
||||
date,
|
||||
|
||||
Reference in New Issue
Block a user