Fixed Score scraper breaking if gallery image can't be found, though actual issue was in unprint library.

This commit is contained in:
DebaucheryLibrarian 2026-02-04 17:50:24 +01:00
parent 8d1b2975da
commit 506db492bc
3 changed files with 7 additions and 7 deletions

8
package-lock.json generated
View File

@ -94,7 +94,7 @@
"tunnel": "0.0.6", "tunnel": "0.0.6",
"ua-parser-js": "^1.0.37", "ua-parser-js": "^1.0.37",
"undici": "^5.28.1", "undici": "^5.28.1",
"unprint": "^0.18.24", "unprint": "^0.18.25",
"url-pattern": "^1.0.3", "url-pattern": "^1.0.3",
"v-tooltip": "^2.1.3", "v-tooltip": "^2.1.3",
"video.js": "^8.6.1", "video.js": "^8.6.1",
@ -20380,9 +20380,9 @@
} }
}, },
"node_modules/unprint": { "node_modules/unprint": {
"version": "0.18.24", "version": "0.18.25",
"resolved": "https://registry.npmjs.org/unprint/-/unprint-0.18.24.tgz", "resolved": "https://registry.npmjs.org/unprint/-/unprint-0.18.25.tgz",
"integrity": "sha512-n3493Y5ysY/XdL4QBydReLN2sQTF89Nb75jErCQN0A2U6MC+MS4E4NXrMFYrb2GFetNqp9Nw0zGKkk6bCPS1Ug==", "integrity": "sha512-eGUq818vUOHOqJ1niie/2SH3nu3zf6yPWQrlPgpJJOi8QqxS1XLHVStwU7Ql7VdBPXjS1BbWoHbX+JQptKGQAQ==",
"dependencies": { "dependencies": {
"bottleneck": "^2.19.5", "bottleneck": "^2.19.5",
"cookie": "^1.1.1", "cookie": "^1.1.1",

View File

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

View File

@ -174,9 +174,9 @@ function scrapeScene({ query }, url) {
return Array.from(new Set([ return Array.from(new Set([
...isJoin ? [] : [link], ...isJoin ? [] : [link],
img.replace('_tn', ''), img?.replace('_tn', ''),
img, img,
])); ])).filter(Boolean);
}); });
if (poster) { if (poster) {