From 42effd53fc7e9a8418e220dbfe949d471b457f8a Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 2 Mar 2026 06:21:27 +0100 Subject: [PATCH] Added Diabolic affiliate. Disabled filename actors and tags in Gamma banner tool, unreliable. --- seeds/06_affiliates.js | 5 +++++ src/tools/gamma_banners.js | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/seeds/06_affiliates.js b/seeds/06_affiliates.js index 2b770297..aab3ec36 100755 --- a/seeds/06_affiliates.js +++ b/seeds/06_affiliates.js @@ -555,6 +555,11 @@ const affiliates = [ url: 'https://www.g2fame.com/chaosmen/go.php?pr=8&su=2&si=608&ad=277470&pa=index&ar=&buffer=', comment: 'per signup', }, + { + channel: 'diabolic', + url: 'https://www.g2fame.com/diabolic/go.php?pr=8&su=2&si=523&ad=277470&pa=index&ar=&buffer=', + comment: 'per signup', + }, // kelly madison / 8k { network: 'kellymadison', diff --git a/src/tools/gamma_banners.js b/src/tools/gamma_banners.js index eb5aba7d..0e37ac81 100644 --- a/src/tools/gamma_banners.js +++ b/src/tools/gamma_banners.js @@ -92,7 +92,8 @@ async function init() { const fileTags = tags.slice(0, 4).join('_'); const fileActors = banner.SceneActors?.slice(0, 2).map((actor) => slugify(actor, '_')).join('_'); - const filename = `${channel}_${banner.Width}_${banner.Height}_${fileActors || banner.MediaID}${fileTags ? `-${fileTags}` : ''}.${banner.MediaExt}`; + // actors and tags are unreliable and describe entire scene, not banner, don't include by default + const filename = `${channel}_${banner.Width}_${banner.Height}_${fileActors && argv.actors ? fileActors : banner.MediaID}${fileTags && argv.tags ? `-${fileTags}` : ''}.${banner.MediaExt}`; const filepath = `/tmp/gamma/${channel}/${filename}`; if (argv.inspect) { @@ -114,7 +115,7 @@ async function init() { await pipeline(Readable.fromWeb(res.body), writer); - console.log(`Saved ${url} to ${filepath}`); + console.log(`Saved ${url} to ${filepath}, actors ${banner.SceneActors?.join(', ') || ''}`); } else { console.log(`Failed to fetch ${url} (${res.status})`); }