Using sequence number as entry ID for 5K/8K videos as this is what they use in URLs.

This commit is contained in:
DebaucheryLibrarian 2025-12-14 00:54:25 +01:00
parent bc1238ad72
commit 2052af7977
2 changed files with 7 additions and 3 deletions

View File

@ -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',
},

View File

@ -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;