Auto-shrinking pagination. Various Teen Core Club curations.
This commit is contained in:
@@ -176,7 +176,7 @@ function scrapeAll(html, site, networkUrl, hasTeaser = true) {
|
||||
if (posterEl) release.poster = posterEl.attr('data-original') || posterEl.attr('src');
|
||||
|
||||
const channelEl = $(element).find('.fromSite a');
|
||||
if (channelEl) release.channel = channelEl.attr('title').replace('.com', '');
|
||||
if (channelEl.attr('title')) release.channel = channelEl.attr('title').replace('.com', '');
|
||||
|
||||
if (hasTeaser) {
|
||||
release.teaser = [
|
||||
|
||||
@@ -135,6 +135,7 @@ async function scrapeLatestReleases(scraper, entity, preData) {
|
||||
try {
|
||||
return await scrapeReleases(scraper, entity, preData, false);
|
||||
} catch (error) {
|
||||
console.trace(error);
|
||||
logger.warn(`Failed to scrape latest updates for '${entity.slug}' (${entity.parent?.slug}): ${error.message}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user