Compare commits
No commits in common. "dda72701f626a652332b4481d715ab0c5e657572" and "d2b4ceb1663c57e34cbf5e30e023e63e62d47420" have entirely different histories.
dda72701f6
...
d2b4ceb166
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.244.91",
|
||||
"version": "1.244.90",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx",
|
||||
"version": "1.244.91",
|
||||
"version": "1.244.90",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.458.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.244.91",
|
||||
"version": "1.244.90",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ function scrapeScene({ query }, url, entity) {
|
|||
release.date = query.date('.shoot-detail-legend', 'MMM D, YYYY');
|
||||
|
||||
release.duration = data?.duration
|
||||
? Math.round(data.duration / 1000) // duration actually accurate down to the millisecond, not rounded to the nearest thousand
|
||||
? data.duration / 1000
|
||||
: query.duration('#shootPage .clock');
|
||||
|
||||
release.actors = query.elements('#shootPage h1 + span a[href*="/model"]').map((actorEl) => ({
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ async function curateReleaseEntry(release, batchId, existingRelease, type = 'sce
|
|||
if (type === 'scene') {
|
||||
curatedRelease.shoot_id = release.shootId || null;
|
||||
curatedRelease.production_date = Number(release.productionDate) ? release.productionDate : null;
|
||||
curatedRelease.duration = Math.round(release.duration) || null; // float may happen if scraper converts duration from milliseconds with a simple / 1000
|
||||
curatedRelease.duration = Number(release.duration) || null;
|
||||
curatedRelease.qualities = Array.from(new Set(release.qualities?.map(Number).filter(Boolean))).sort((qualityA, qualityB) => qualityB - qualityA);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue