forked from DebaucheryLibrarian/traxxx
Added 'ignore' parameter to sites. Added light logo for Metro HD.
This commit is contained in:
parent
000105b175
commit
d61ea26eb5
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',
|
name: 'Japan',
|
||||||
slug: 'bangjapan',
|
slug: 'bangjapan',
|
||||||
url: 'https://www.bang.com/original/3079/bang-japan',
|
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,
|
network_id: networksMap.bang,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -116,6 +116,11 @@ async function scrapeSites() {
|
||||||
const networks = await fetchIncludedSites();
|
const networks = await fetchIncludedSites();
|
||||||
|
|
||||||
const scrapedNetworks = await Promise.map(networks, async network => Promise.map(network.sites, async (site) => {
|
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];
|
const scraper = scrapers.releases[site.slug] || scrapers.releases[site.network.slug];
|
||||||
|
|
||||||
if (!scraper) {
|
if (!scraper) {
|
||||||
|
|
Loading…
Reference in New Issue