forked from DebaucheryLibrarian/traxxx
Skipping Radical deep scrape if base release is available.
This commit is contained in:
parent
2c7fb51d65
commit
81c7925b86
|
|
@ -146,7 +146,12 @@ async function fetchUpcoming(channel, _page, { parameters }) {
|
|||
return res.status;
|
||||
}
|
||||
|
||||
async function fetchScene(url, channel, _baseScene, { parameters }) {
|
||||
async function fetchScene(url, channel, baseScene, { parameters }) {
|
||||
if (baseScene.entryId) {
|
||||
// identical data
|
||||
return baseScene;
|
||||
}
|
||||
|
||||
const slug = new URL(url).pathname.split('/').at(-1);
|
||||
const endpoint = await fetchEndpoint(channel);
|
||||
const res = await http.get(`${channel.url}/_next/data/${endpoint}/${parameters.videos || 'videos'}/${slug}.json?slug=${slug}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue