Compare commits
No commits in common. "62f40e34e2ed885f065bcbdb8ef9002831d0f830" and "2885a82f8ebb44db683b680b750e50e543b0d7fb" have entirely different histories.
62f40e34e2
...
2885a82f8e
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.244.69",
|
||||
"version": "1.244.68",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx",
|
||||
"version": "1.244.69",
|
||||
"version": "1.244.68",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.458.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.244.69",
|
||||
"version": "1.244.68",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -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,9 +69,7 @@ async function fetchLatest(channel, page = 1) {
|
|||
const data = dataString && JSON.parse(dataString);
|
||||
|
||||
if (data.props?.pageProps?.contents?.data) {
|
||||
const scenes = data.props.pageProps.contents.data.map((scene) => scrapeScene(scene, channel));
|
||||
|
||||
return scenes;
|
||||
return data.props.pageProps.contents.data.map((scene) => scrapeScene(scene, channel));
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue