Added channel filter option to Gamma scraper, re-added Disruptive Films channel.
This commit is contained in:
@@ -3025,6 +3025,7 @@ const priorities = [ // higher index is higher priority
|
||||
['gangbang'],
|
||||
['gay', 'transsexual', 'bisexual', 'hentai'],
|
||||
['pissing'],
|
||||
['compilation', 'bts'],
|
||||
].reduce((acc, slugs, index) => {
|
||||
slugs.forEach((slug) => { acc[slug] = index; });
|
||||
|
||||
|
||||
@@ -1018,12 +1018,12 @@ const sites = [
|
||||
{
|
||||
name: 'Disruptive Films',
|
||||
slug: 'disruptivefilms',
|
||||
delete: true,
|
||||
url: 'https://www.disruptivefilms.com',
|
||||
parent: 'disruptivefilms',
|
||||
tags: ['gay'],
|
||||
parameters: {
|
||||
queryChannel: 'asgmaxdisruptivefilms',
|
||||
filterChannel: 'asgmaxdisruptivefilms',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -21,6 +21,10 @@ async function scrapeApiReleases(json, site, options) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
if (options.parameters?.filterChannel && scene.mainChannel?.id !== options.parameters.filterChannel) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
const release = {
|
||||
entryId: scene.clip_id,
|
||||
description: scene.description,
|
||||
|
||||
Reference in New Issue
Block a user