Removed channel ID from Gamma update query to prevent duplicate scenes. Added sexuality tags with covers to overview.

This commit is contained in:
DebaucheryLibrarian 2022-02-08 00:19:34 +01:00
parent 03d96d4dec
commit 9b7879bff7
8 changed files with 37 additions and 6 deletions

View File

@ -50,6 +50,7 @@ const tagSlugsByCategory = {
'facial', 'facial',
'creampie', 'creampie',
'squirting', 'squirting',
'transsexual',
], ],
appearance: [ appearance: [
'asian', 'asian',
@ -64,6 +65,11 @@ const tagSlugsByCategory = {
'tattoos', 'tattoos',
'piercings', 'piercings',
], ],
sexuality: [
'gay',
'bisexual',
'transsexual',
],
oral: [ oral: [
'blowjob', 'blowjob',
'pussy-eating', 'pussy-eating',
@ -162,10 +168,18 @@ async function fetchTags() {
const tagsBySlug = tags.reduce((acc, tag) => ({ ...acc, [tag.slug]: tag }), {}); const tagsBySlug = tags.reduce((acc, tag) => ({ ...acc, [tag.slug]: tag }), {});
this.categories = Object.entries(tagSlugsByCategory).reduce((acc, [category, tagSlugs]) => ({ this.categories = Object.entries(tagSlugsByCategory).reduce((acc, [category, tagSlugs]) => {
const categoryTags = tagSlugs.map((tagSlug) => tagsBySlug[tagSlug]).filter(Boolean);
if (categoryTags.length === 0) {
return acc;
}
return {
...acc, ...acc,
[category]: tagSlugs.map(tagSlug => tagsBySlug[tagSlug]), [category]: categoryTags,
}), {}); };
}, {});
} }
async function searchTags() { async function searchTags() {
@ -202,6 +216,7 @@ export default {
}, },
watch: { watch: {
$route: fetchTags, $route: fetchTags,
'$store.state.ui.tagFilter': fetchTags,
}, },
mounted, mounted,
methods: { methods: {

View File

@ -210,9 +210,15 @@ function initTagsActions(store, _router) {
query Tags( query Tags(
$slugs: [String!] = [], $slugs: [String!] = [],
$limit: Int = 100 $limit: Int = 100
$exclude: [String!]
) { ) {
tags( tags(
filter: { slug: { in: $slugs } }, filter: {
slug: {
in: $slugs
notIn: $exclude
}
},
first: $limit first: $limit
) { ) {
id id
@ -257,6 +263,7 @@ function initTagsActions(store, _router) {
`, { `, {
slugs, slugs,
limit, limit,
exclude: store.state.ui.tagFilter,
}); });
return tags.map((tag) => curateTag(tag, store.state.ui.sfw)); return tags.map((tag) => curateTag(tag, store.state.ui.sfw));

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -1983,6 +1983,14 @@ const aliases = [
for: 'transsexual', for: 'transsexual',
secondary: true, secondary: true,
}, },
{
name: 'shemale',
for: 'transsexual',
},
{
name: 'tranny',
for: 'transsexual',
},
{ {
name: 'ts', name: 'ts',
for: 'transsexual', for: 'transsexual',

View File

@ -1023,6 +1023,7 @@ const tagMedia = [
['teen', 1, 'Stalfra aka Precious', 'nubiles'], ['teen', 1, 'Stalfra aka Precious', 'nubiles'],
['trainbang', 1, 'Ria Sunn', 'private'], ['trainbang', 1, 'Ria Sunn', 'private'],
['trainbang', 0, 'Nicole Black in GIO971', 'legalporno'], ['trainbang', 0, 'Nicole Black in GIO971', 'legalporno'],
['transsexual', 'kelly_silva_mel_almeida_brazilliantranssexuals', 'Kelly Silva and Mel Almeida', 'brazilliantranssexuals'],
['tap', 4, 'Francys Belle in GIO1103', 'legalporno'], ['tap', 4, 'Francys Belle in GIO1103', 'legalporno'],
['tap', 'lisey_sweet_legalporno', 'Lisey Sweet in GIO816', 'legalporno'], ['tap', 'lisey_sweet_legalporno', 'Lisey Sweet in GIO816', 'legalporno'],
['tap', 3, 'Julia Red in GIO1007', 'legalporno'], ['tap', 3, 'Julia Red in GIO1007', 'legalporno'],

View File

@ -631,7 +631,7 @@ async function fetchLatestApi(site, page = 1, preData, include, upcoming = false
requests: [ requests: [
{ {
indexName: 'all_scenes', indexName: 'all_scenes',
params: `query=&hitsPerPage=36&maxValuesPerFacet=100&page=${page - 1}&facetFilters=[["lesbian:"],["bisex:"],["shemale:"],["upcoming:${upcoming ? 1 : 0}"]]&filters=sitename:${site.slug} OR channels.id:${site.slug}`, params: `query=&hitsPerPage=36&maxValuesPerFacet=100&page=${page - 1}&facetFilters=[["lesbian:"],["bisex:"],["shemale:"],["upcoming:${upcoming ? 1 : 0}"]]&filters=sitename:${site.slug}`, // OR channels.id:${site.slug}`,
}, },
], ],
}, { }, {