Skipping Radical deep scrape if base release is available.

This commit is contained in:
DebaucheryLibrarian 2026-01-11 02:56:46 +01:00
parent 2c7fb51d65
commit 81c7925b86
1 changed files with 6 additions and 1 deletions

View File

@ -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}`);