Auto-shrinking pagination. Various Teen Core Club curations.

This commit is contained in:
2020-07-05 04:10:35 +02:00
parent c47fae3a1b
commit f4ef2d4cc2
109 changed files with 98 additions and 91 deletions

View File

@@ -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 = [

View File

@@ -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}`);
}