forked from DebaucheryLibrarian/traxxx
Changed q get and geta APIs to include status, refactored scrapers. Showing front- and back-cover on movie tiles and release page (fix). Removed icons from main navigation. Returning scenes from Jules Jordan movie scraper.
This commit is contained in:
@@ -60,13 +60,13 @@ async function fetchLatest(site, page = 1) {
|
||||
}
|
||||
|
||||
const url = `${site.url}/tour_${site.parameters.siteId}/categories/movies_${page}_d.html`;
|
||||
const qLatest = await geta(url, '.updatesBlock .movieBlock, .updatesBlock .videoBlock, .latest_updates_block .update_details, .category_listing_block .update_details');
|
||||
const res = await geta(url, '.updatesBlock .movieBlock, .updatesBlock .videoBlock, .latest_updates_block .update_details, .category_listing_block .update_details');
|
||||
|
||||
if (qLatest && site.parameters.block) {
|
||||
return scrapeBlockLatest(qLatest, site);
|
||||
if (res.ok && site.parameters.block) {
|
||||
return scrapeBlockLatest(res.items, site);
|
||||
}
|
||||
|
||||
return qLatest && scrapeClassicLatest(qLatest, site);
|
||||
return res.ok ? scrapeClassicLatest(res.items, site) : res.status;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user