Compare commits

..

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
aa1a5bd95d 1.247.6 2026-01-27 03:34:44 +01:00
DebaucheryLibrarian
5515c969de Using arguments for entity slug and studio ID in StashDB import tool. 2026-01-27 03:34:42 +01:00
3 changed files with 11 additions and 5 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.247.5",
"version": "1.247.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.247.5",
"version": "1.247.6",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

@@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.247.5",
"version": "1.247.6",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@@ -88,7 +88,13 @@ async function curateData(data) {
.select('releases.*')
.leftJoin('entities', 'entities.id', 'releases.entity_id')
.leftJoin('entities as parents', 'parents.id', 'entities.parent_id')
.where('entities.slug', 'hardx')
.modify((builder) => {
if (args.channel.charAt(0) === '_') {
builder.where('parents.slug', args.entity.slice(1));
} else {
builder.where('entities.slug', args.entity);
}
})
.whereIn('entry_id', stashScenes.map((scene) => scene.entryId || scene.urlId));
console.log(`Matched ${sceneEntries.length} scenes`);
@@ -132,7 +138,7 @@ async function init() {
query,
variables: {
limit: 1000,
studioId: '8c7ad24a-4756-4163-b328-28e8391602cd',
studioId: args.studioId,
page: 1,
},
}, {