Updated unprint for improved redirect logic.

This commit is contained in:
DebaucheryLibrarian 2026-01-08 02:12:59 +01:00
parent 5e081a8e2d
commit a9ddce7150
3 changed files with 6 additions and 6 deletions

8
package-lock.json generated
View File

@ -93,7 +93,7 @@
"tunnel": "0.0.6",
"ua-parser-js": "^1.0.37",
"undici": "^5.28.1",
"unprint": "^0.18.4",
"unprint": "^0.18.5",
"url-pattern": "^1.0.3",
"v-tooltip": "^2.1.3",
"video.js": "^8.6.1",
@ -20340,9 +20340,9 @@
}
},
"node_modules/unprint": {
"version": "0.18.4",
"resolved": "https://registry.npmjs.org/unprint/-/unprint-0.18.4.tgz",
"integrity": "sha512-npOTOoKrnxv+Zs7AFz3pXfyV7VftRr0ULAhCbnodPNvBoymde9JnVuRGJ6JL6q6RfH0wJgO5jpsT1ar844733g==",
"version": "0.18.5",
"resolved": "https://registry.npmjs.org/unprint/-/unprint-0.18.5.tgz",
"integrity": "sha512-ila82go467kSefN3RqGpGqqR85r+lk9CS/V89y0uuYTC8DA30fqbdKcqsIoThQAF3MlpwNmepj9XRlIecrISLg==",
"dependencies": {
"bottleneck": "^2.19.5",
"cookie": "^1.1.1",

View File

@ -152,7 +152,7 @@
"tunnel": "0.0.6",
"ua-parser-js": "^1.0.37",
"undici": "^5.28.1",
"unprint": "^0.18.4",
"unprint": "^0.18.5",
"url-pattern": "^1.0.3",
"v-tooltip": "^2.1.3",
"video.js": "^8.6.1",

View File

@ -68,7 +68,7 @@ function scrapeAll(scenes, entity) {
}
async function fetchLatest(site, page = 1) {
const url = `${site.url}/video/gallery/${((page - 1) * 12) || ''}`;
const url = `${site.url}/video/gallery/${(page - 1) * 12}`; // /0 redirects back to /
const res = await unprint.get(url, {
interface: 'request',