forked from DebaucheryLibrarian/traxxx
Added support for Family Strokes.
This commit is contained in:
@@ -2704,6 +2704,22 @@ function getSites(networksMap) {
|
||||
parameters: JSON.stringify({ id: 'sss' }),
|
||||
network_id: networksMap.teamskeet,
|
||||
},
|
||||
{
|
||||
slug: 'submissived',
|
||||
name: 'Submissived',
|
||||
description: '',
|
||||
url: 'https://www.submissived.com',
|
||||
parameters: JSON.stringify({ scraper: 'A' }),
|
||||
network_id: networksMap.teamskeet,
|
||||
},
|
||||
{
|
||||
slug: 'familystrokes',
|
||||
name: 'Family Strokes',
|
||||
description: '',
|
||||
url: 'https://www.familystrokes.com',
|
||||
parameters: JSON.stringify({ scraper: 'A' }),
|
||||
network_id: networksMap.teamskeet,
|
||||
},
|
||||
// VIXEN
|
||||
{
|
||||
slug: 'vixen',
|
||||
|
||||
@@ -404,6 +404,11 @@ function getTags(groupsMap) {
|
||||
alias_for: null,
|
||||
group_id: groupsMap.finish,
|
||||
},
|
||||
{
|
||||
name: 'family taboo',
|
||||
slug: 'family',
|
||||
alias_for: null,
|
||||
},
|
||||
{
|
||||
name: 'feet',
|
||||
slug: 'feet',
|
||||
@@ -1322,6 +1327,14 @@ function getTagAliases(tagsMap) {
|
||||
name: 'huge toys',
|
||||
alias_for: tagsMap.toys,
|
||||
},
|
||||
{
|
||||
name: 'incest',
|
||||
alias_for: tagsMap.family,
|
||||
},
|
||||
{
|
||||
name: 'incest fantasy',
|
||||
alias_for: tagsMap.family,
|
||||
},
|
||||
{
|
||||
name: 'innie',
|
||||
alias_for: tagsMap['innie-pussy'],
|
||||
@@ -1553,6 +1566,21 @@ function getTagAliases(tagsMap) {
|
||||
];
|
||||
}
|
||||
|
||||
function getSiteTags() {
|
||||
return {
|
||||
allanal: ['anal', 'mff'],
|
||||
boundgods: ['gay'],
|
||||
buttmachineboys: ['gay'],
|
||||
divinebitches: ['femdom'],
|
||||
familystrokes: ['family'],
|
||||
menonedge: ['gay'],
|
||||
submissived: ['bdsm'],
|
||||
swallowed: ['blowjob', 'deepthroat', 'facefucking'],
|
||||
trueanal: ['anal'],
|
||||
tspussyhunters: ['transsexual'],
|
||||
};
|
||||
}
|
||||
|
||||
exports.seed = knex => Promise.resolve()
|
||||
.then(async () => upsert('tags_groups', groups, 'slug', knex))
|
||||
.then(async () => {
|
||||
@@ -1561,7 +1589,7 @@ exports.seed = knex => Promise.resolve()
|
||||
|
||||
const tags = getTags(groupsMap);
|
||||
|
||||
return upsert('tags', tags, 'slug', knex);
|
||||
return upsert('tags', tags, 'slug');
|
||||
})
|
||||
.then(async () => {
|
||||
const tags = await knex('tags').select('*').where({ alias_for: null });
|
||||
@@ -1569,5 +1597,22 @@ exports.seed = knex => Promise.resolve()
|
||||
|
||||
const tagAliases = getTagAliases(tagsMap);
|
||||
|
||||
return upsert('tags', tagAliases, 'name', knex);
|
||||
return upsert('tags', tagAliases, 'name');
|
||||
})
|
||||
.then(async () => {
|
||||
const siteTags = getSiteTags();
|
||||
const sites = await knex('sites').whereIn('slug', Object.keys(siteTags));
|
||||
|
||||
const tags = await knex('tags').whereIn('slug', Object.values(siteTags).flat());
|
||||
const tagsMap = tags.reduce((acc, tag) => ({ ...acc, [tag.slug]: tag.id }), {});
|
||||
|
||||
const tagAssociations = sites
|
||||
.map(site => siteTags[site.slug].map(tagSlug => ({
|
||||
tag_id: tagsMap[tagSlug],
|
||||
site_id: site.id,
|
||||
inherit: true,
|
||||
})))
|
||||
.flat();
|
||||
|
||||
return upsert('sites_tags', tagAssociations, ['tag_id', 'site_id']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user