Compare commits

2 Commits
Author SHA1 Message Date
DebaucheryLibrarian 48f8c8da66 1.252.21 2026-06-03 05:58:35 +02:00
DebaucheryLibrarian 183f87155f Fixed Channel Anal thumbnail fallbacks. 2026-06-03 05:58:32 +02:00
3 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.252.20",
"version": "1.252.21",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.252.20",
"version": "1.252.21",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.252.20",
"version": "1.252.21",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {
+18 -5
View File
@@ -4,9 +4,10 @@ const unprint = require('unprint');
const slugify = require('../utils/slugify');
function extractEntryId(poster) {
function extractEntryId(posters) {
try {
return slugify(new URL(poster).pathname.match(/\/images\/(.*?)\.[a-z]{3,4}/i)?.[1]?.replace(/smak.*/i, ''), '');
const poster = [].concat(posters).filter(Boolean)[0];
return slugify(new URL(poster.src || poster).pathname.match(/\/images\/(.*?)\.[a-z]{3,4}/i)?.[1]?.replace(/smak.*/i, ''), '');
} catch (error) {
return null;
}
@@ -48,14 +49,26 @@ function getPhotos(poster) {
if (photo === poster) {
return {
poster,
poster: {
src: poster,
verifyType: 'image',
},
photos: [],
};
}
return {
poster: [photo, poster],
photos: [poster],
poster: [{
src: photo,
verifyType: 'image',
}, {
src: poster,
verifyType: 'image',
}],
photos: [{
src: poster,
verifyType: 'image',
}],
};
}