Fixed In The Crack poster URL compose, padding IDs.
This commit is contained in:
@@ -73,10 +73,10 @@ function scrapeAll(scenes, channel, models = {}, isUpcoming = false) {
|
||||
release.title = scene.title;
|
||||
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
|
||||
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) {
|
||||
return release;
|
||||
@@ -142,7 +142,7 @@ function scrapeScene(scene, channel, baseRelease, models = {}) {
|
||||
release.productionDate = unprint.extractDate(scene.shootDate, 'YYYY-MM-DD');
|
||||
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
|
||||
?.filter((image) => image.imageType === 1) // type 1 and 2 are dupes as far as thumbs are concerned
|
||||
|
||||
Reference in New Issue
Block a user