From 2052af79778fca0c27a2a26421e16a5183fb34ad Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 14 Dec 2025 00:54:25 +0100 Subject: [PATCH] Using sequence number as entry ID for 5K/8K videos as this is what they use in URLs. --- seeds/01_networks.js | 2 ++ src/scrapers/kellymadison.js | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/seeds/01_networks.js b/seeds/01_networks.js index 33e878dc..499c884a 100755 --- a/seeds/01_networks.js +++ b/seeds/01_networks.js @@ -114,6 +114,7 @@ const networks = [ name: '5K Vids', url: 'https://www.5kvids.com', parameters: { + entryId: 'sequence', apiKey: 'fiveKCash', apiAddress: 'https://www.8kmilfs.com/api', }, @@ -463,6 +464,7 @@ const networks = [ url: 'https://www.kellymadison.com', description: 'Home of Kelly Madison and Ryan Madison', parameters: { + entryId: 'id', apiKey: 'kellyCash', apiAddress: 'https://www.pornfidelity.com/api', }, diff --git a/src/scrapers/kellymadison.js b/src/scrapers/kellymadison.js index 2c2e03b8..0fa884b3 100755 --- a/src/scrapers/kellymadison.js +++ b/src/scrapers/kellymadison.js @@ -21,10 +21,12 @@ const qualityMap = { '8k': 4320, }; -function scrapeSceneApi(data, channel) { +function scrapeSceneApi(data, channel, parameters) { const release = {}; - release.entryId = data.id; + release.entryId = parameters.entryId === 'sequence' + ? data.sequence_number + : data.id; if (data.url) { // provided URL works but always points to 8KMilfs instead of dedicated site @@ -88,7 +90,7 @@ async function fetchLatestApi(channel, page = 1, { parameters }) { }); if (res.ok) { - return res.body.data.map((data) => scrapeSceneApi(data, channel)); + return res.body.data.map((data) => scrapeSceneApi(data, channel, parameters)); } return res.status;