Refactored media fetch with undici for http/2 support.

This commit is contained in:
DebaucheryLibrarian
2026-04-02 04:45:31 +02:00
parent 6cabfc3090
commit a96ec64d61
9 changed files with 205 additions and 934 deletions

View File

@@ -85,7 +85,7 @@ async function scrapeScene({ query: pageQuery, html }, { url, entity, include })
}
if (include.photos && capsUrl) {
release.caps = await fetchCaps(capsUrl);
release.caps = await fetchCaps(capsUrl, entity);
}
release.trailer = pageQuery.video('#download_select option[value*=".mp4"]', { attribute: 'value' });