Compare commits

..

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 62f40e34e2 1.244.69 2025-08-27 04:26:57 +02:00
DebaucheryLibrarian 4979e161ff Fixed Ricky's Room breaking when photos aren't available. 2025-08-27 04:26:55 +02:00
3 changed files with 7 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.244.68",
"version": "1.244.69",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.244.68",
"version": "1.244.69",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.244.68",
"version": "1.244.69",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@ -23,7 +23,7 @@ function scrapeScene(data, channel) {
release.tags = data.tags;
release.poster = [data.trailer_screencap].concat(data.extra_thumbnails);
release.photos = data.previews.full
release.photos = data.previews?.full
.map((url) => [url, url.replace('full/', 'thumbs/')]) // photos
.concat(data.thumbs); // screenshots
@ -69,7 +69,9 @@ async function fetchLatest(channel, page = 1) {
const data = dataString && JSON.parse(dataString);
if (data.props?.pageProps?.contents?.data) {
return data.props.pageProps.contents.data.map((scene) => scrapeScene(scene, channel));
const scenes = data.props.pageProps.contents.data.map((scene) => scrapeScene(scene, channel));
return scenes;
}
return null;