forked from DebaucheryLibrarian/traxxx
Using sequence number as entry ID for 5K/8K videos as this is what they use in URLs.
This commit is contained in:
parent
bc1238ad72
commit
2052af7977
|
|
@ -114,6 +114,7 @@ const networks = [
|
||||||
name: '5K Vids',
|
name: '5K Vids',
|
||||||
url: 'https://www.5kvids.com',
|
url: 'https://www.5kvids.com',
|
||||||
parameters: {
|
parameters: {
|
||||||
|
entryId: 'sequence',
|
||||||
apiKey: 'fiveKCash',
|
apiKey: 'fiveKCash',
|
||||||
apiAddress: 'https://www.8kmilfs.com/api',
|
apiAddress: 'https://www.8kmilfs.com/api',
|
||||||
},
|
},
|
||||||
|
|
@ -463,6 +464,7 @@ const networks = [
|
||||||
url: 'https://www.kellymadison.com',
|
url: 'https://www.kellymadison.com',
|
||||||
description: 'Home of Kelly Madison and Ryan Madison',
|
description: 'Home of Kelly Madison and Ryan Madison',
|
||||||
parameters: {
|
parameters: {
|
||||||
|
entryId: 'id',
|
||||||
apiKey: 'kellyCash',
|
apiKey: 'kellyCash',
|
||||||
apiAddress: 'https://www.pornfidelity.com/api',
|
apiAddress: 'https://www.pornfidelity.com/api',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,12 @@ const qualityMap = {
|
||||||
'8k': 4320,
|
'8k': 4320,
|
||||||
};
|
};
|
||||||
|
|
||||||
function scrapeSceneApi(data, channel) {
|
function scrapeSceneApi(data, channel, parameters) {
|
||||||
const release = {};
|
const release = {};
|
||||||
|
|
||||||
release.entryId = data.id;
|
release.entryId = parameters.entryId === 'sequence'
|
||||||
|
? data.sequence_number
|
||||||
|
: data.id;
|
||||||
|
|
||||||
if (data.url) {
|
if (data.url) {
|
||||||
// provided URL works but always points to 8KMilfs instead of dedicated site
|
// 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) {
|
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;
|
return res.status;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue