Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 8f81f71802 1.231.29 2023-09-24 04:29:46 +02:00
DebaucheryLibrarian e7a4ccecf3 Renamed Natasha Teen Productions to Natasha Teen Films. 2023-09-24 04:29:43 +02:00
3 changed files with 19 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.231.28", "version": "1.231.29",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.231.28", "version": "1.231.29",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.231.28", "version": "1.231.29",
"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

@ -74,8 +74,9 @@ const studios = [
showcased: true, showcased: true,
}, },
{ {
name: 'Natasha Teen Productions', name: 'Natasha Teen Films',
slug: 'natashateenproductions', slug: 'natashateenfilms',
rename: 'natashateenproductions',
url: 'https://www.analvids.com/studios/natasha-teen-productions', url: 'https://www.analvids.com/studios/natasha-teen-productions',
parent: 'analvids', parent: 'analvids',
alias: [ alias: [
@ -5238,6 +5239,19 @@ const studios = [
/* eslint-disable max-len */ /* eslint-disable max-len */
exports.seed = (knex) => Promise.resolve() exports.seed = (knex) => Promise.resolve()
.then(async () => { .then(async () => {
await Promise.all(studios.map(async (studio) => {
if (studio.rename) {
return knex('entities')
.where({
type: studio.type || 'studio',
slug: studio.rename,
})
.update('slug', studio.slug);
}
return null;
}).filter(Boolean));
const networks = await knex('entities') const networks = await knex('entities')
.whereIn('type', ['network', 'channel']) .whereIn('type', ['network', 'channel'])
.whereIn('slug', studios.map((studio) => studio.parent)); .whereIn('slug', studios.map((studio) => studio.parent));