forked from DebaucheryLibrarian/traxxx
Added 'ignore' parameter to sites. Added light logo for Metro HD.
This commit is contained in:
BIN
public/img/logos/metrohd/misc/metro-hd_original.png
Normal file
BIN
public/img/logos/metrohd/misc/metro-hd_original.png
Normal file
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 |
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user