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

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