Compare commits
2 Commits
fd205aed88
...
a7e2a2e5c3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7e2a2e5c3 | ||
|
|
b481ded6b3 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.248.23",
|
"version": "1.248.24",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.248.23",
|
"version": "1.248.24",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.458.0",
|
"@aws-sdk/client-s3": "^3.458.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.248.23",
|
"version": "1.248.24",
|
||||||
"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": {
|
||||||
|
|||||||
12
src/argv.js
12
src/argv.js
@@ -101,7 +101,17 @@ const { argv } = yargs
|
|||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
.option('associate-actors', {
|
.option('associate-actors', {
|
||||||
describe: 'Associate scene actors',
|
describe: 'Associate scene actors and directors',
|
||||||
|
type: 'boolean',
|
||||||
|
default: true,
|
||||||
|
})
|
||||||
|
.option('associate-tags', {
|
||||||
|
describe: 'Associate scene tags',
|
||||||
|
type: 'boolean',
|
||||||
|
default: true,
|
||||||
|
})
|
||||||
|
.option('associate-series', {
|
||||||
|
describe: 'Associate scene series',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: true,
|
default: true,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -452,13 +452,18 @@ async function storeScenes(releases, useBatchId) {
|
|||||||
|
|
||||||
const [actors, storedSeries] = await Promise.all([
|
const [actors, storedSeries] = await Promise.all([
|
||||||
argv.associateActors && associateActors(releasesWithId, batchId),
|
argv.associateActors && associateActors(releasesWithId, batchId),
|
||||||
storeSeries(releasesWithId.map((release) => release.serie && { ...release.serie, entity: release.entity }).filter(Boolean), batchId),
|
argv.associateSeries && storeSeries(releasesWithId.map((release) => release.serie && { ...release.serie, entity: release.entity }).filter(Boolean), batchId),
|
||||||
associateReleaseTags(releasesWithId),
|
argv.associateTags && associateReleaseTags(releasesWithId),
|
||||||
storeChapters(releasesWithId),
|
argv.associateTags && storeChapters(releasesWithId),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await associateSerieScenes(storedSeries, releasesWithId);
|
if (argv.associateSeries && storedSeries) {
|
||||||
await associateDirectors(releasesWithId, batchId); // some directors may also be actors, don't associate at the same time
|
await associateSerieScenes(storedSeries, releasesWithId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (argv.associateActors && actors) {
|
||||||
|
await associateDirectors(releasesWithId, batchId); // some directors may also be actors, don't associate at the same time
|
||||||
|
}
|
||||||
|
|
||||||
await updateSceneSearch(releasesWithId.map((release) => release.id));
|
await updateSceneSearch(releasesWithId.map((release) => release.id));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user