Compare commits

..

No commits in common. "62f40e34e2ed885f065bcbdb8ef9002831d0f830" and "2885a82f8ebb44db683b680b750e50e543b0d7fb" have entirely different histories.

3 changed files with 5 additions and 7 deletions

4
package-lock.json generated
View File

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

View File

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

View File

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