Compare commits
2 Commits
cefd91a7b9
...
47238b2969
Author | SHA1 | Date |
---|---|---|
|
47238b2969 | |
|
9f3c686913 |
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.137.4",
|
"version": "1.137.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.137.4",
|
"version": "1.137.5",
|
||||||
"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": {
|
||||||
|
|
|
@ -14,8 +14,8 @@ function curateEntity(entity, includeParameters = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const logo = (entity.has_logo
|
const logo = (entity.has_logo
|
||||||
&& (((entity.independent || entity.type === 'network') && `${entity.slug}/network.png`)
|
&& (((entity.independent || entity.type === 'network') && { logo: `${entity.slug}/network.png`, thumbnail: `${entity.slug}/thumbs/network.png`, favicon: `${entity.slug}/favicon.png` })
|
||||||
|| (entity.parent && `${entity.parent.slug}/${entity.slug}.png`)))
|
|| (entity.parent && { logo: `${entity.parent.slug}/${entity.slug}.png`, thumbnail: `${entity.parent.slug}/thumbs/${entity.slug}.png`, favicon: `${entity.parent.slug}/favicon.png` })))
|
||||||
|| null;
|
|| null;
|
||||||
|
|
||||||
const curatedEntity = entity.id ? {
|
const curatedEntity = entity.id ? {
|
||||||
|
@ -27,7 +27,7 @@ function curateEntity(entity, includeParameters = false) {
|
||||||
type: entity.type,
|
type: entity.type,
|
||||||
independent: !!entity.independent,
|
independent: !!entity.independent,
|
||||||
aliases: entity.alias,
|
aliases: entity.alias,
|
||||||
logo,
|
...logo,
|
||||||
parent: curateEntity(entity.parent, includeParameters),
|
parent: curateEntity(entity.parent, includeParameters),
|
||||||
} : {};
|
} : {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue