Added 'ignore' parameter to sites. Added light logo for Metro HD.

This commit is contained in:
ThePendulum 2020-01-29 04:02:32 +01:00
parent 000105b175
commit d61ea26eb5
4 changed files with 6 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -214,7 +214,7 @@ function getSites(networksMap) {
name: 'Japan',
slug: 'bangjapan',
url: 'https://www.bang.com/original/3079/bang-japan',
parameters: JSON.stringify({ siteId: 3079 }),
parameters: JSON.stringify({ siteId: 3079, ignore: true }),
network_id: networksMap.bang,
},
{

View File

@ -116,6 +116,11 @@ async function scrapeSites() {
const networks = await fetchIncludedSites();
const scrapedNetworks = await Promise.map(networks, async network => Promise.map(network.sites, async (site) => {
if (site.parameters?.ignore) {
logger.warn(`Ignoring ${network.name}: ${site.name}`);
return [];
}
const scraper = scrapers.releases[site.slug] || scrapers.releases[site.network.slug];
if (!scraper) {