Using sequence number as entry ID for 5K/8K videos as this is what they use in URLs.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user