Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
79ff9eb58b 1.248.41 2026-02-07 18:16:35 +01:00
DebaucheryLibrarian
e3126b1201 Fixed In The Crack poster URL compose, padding IDs. 2026-02-07 18:16:33 +01:00
3 changed files with 6 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.248.40", "version": "1.248.41",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.248.40", "version": "1.248.41",
"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.248.40", "version": "1.248.41",
"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

@@ -73,10 +73,10 @@ function scrapeAll(scenes, channel, models = {}, isUpcoming = false) {
release.title = scene.title; release.title = scene.title;
release.date = unprint.extractDate(scene.releaseDate, 'YYYY-MM-DD'); release.date = unprint.extractDate(scene.releaseDate, 'YYYY-MM-DD');
release.poster = `https://api.inthecrack.com/image/resize/images/posters/collections/${scene.id}.jpg?w=1400`; release.poster = `https://api.inthecrack.com/image/resize/images/posters/collections/${String(scene.id).padStart(3, '0')}.jpg?w=1400`;
// coming soon photo remains available after release date // coming soon photo remains available after release date
release.photos = [`https://api.inthecrack.com/FileStore/images/coming_soon/${scene.id}.jpg`]; release.photos = [`https://api.inthecrack.com/FileStore/images/coming_soon/${String(scene.id).padStart(3, '0')}.jpg`];
if (isUpcoming) { if (isUpcoming) {
return release; return release;
@@ -142,7 +142,7 @@ function scrapeScene(scene, channel, baseRelease, models = {}) {
release.productionDate = unprint.extractDate(scene.shootDate, 'YYYY-MM-DD'); release.productionDate = unprint.extractDate(scene.shootDate, 'YYYY-MM-DD');
release.productionLocation = scene.shootLocation; release.productionLocation = scene.shootLocation;
release.poster = `https://api.inthecrack.com/image/resize/images/posters/collections/${scene.id}.jpg?w=1400`; release.poster = `https://api.inthecrack.com/image/resize/images/posters/collections/${String(scene.id).padStart(3, '0')}.jpg?w=1400`;
release.photos = scene.galleryImages release.photos = scene.galleryImages
?.filter((image) => image.imageType === 1) // type 1 and 2 are dupes as far as thumbs are concerned ?.filter((image) => image.imageType === 1) // type 1 and 2 are dupes as far as thumbs are concerned