Compare commits

..

No commits in common. "5a975ad0bf11b460361605247f025dedcaa25521" and "5547ff7e76a048c918fd48d21a415b281df2e79c" have entirely different histories.

6 changed files with 9 additions and 42 deletions

View File

@ -11,7 +11,7 @@
<video
v-if="release.trailer"
:src="`/media/${release.trailer.path}`"
:poster="poster"
:poster="release.poster && (sfw ? `/img/${release.poster.sfw.thumbnail}` : `/media/${release.poster.thumbnail}`)"
:alt="release.title"
:class="{ sfw: sfw && paused }"
class="item trailer"
@ -23,7 +23,7 @@
<video
v-else-if="release.teaser && /^video\//.test(release.teaser.mime)"
:src="`/media/${release.teaser.path}`"
:poster="poster"
:poster="release.poster && (sfw ? `/img/${release.poster.sfw.thumbnail}` : `/media/${release.poster.thumbnail}`)"
:alt="release.title"
:class="{ sfw: sfw && paused }"
class="item trailer"
@ -114,22 +114,6 @@ function sfw() {
return this.$store.state.ui.sfw;
}
function poster() {
if (this.release.poster) {
return sfw ? `/img/${this.release.poster.sfw.thumbnail}` : `/media/${this.release.poster.thumbnail}`;
}
if (this.release.covers?.length > 0) {
return this.sfw ? `/img/${this.release.covers[0].sfw.path}` : `/media/${this.release.covers[0].path}`;
}
if (this.photos?.length > 0) {
return this.sfw ? `/img/${this.photos[0].sfw.thumbnail}` : `/media/${this.photos[0].thumbnail}`;
}
return null;
}
function photos() {
const clips = this.release.clips || [];
const clipPostersById = clips.reduce((acc, clip) => ({ ...acc, [clip.poster.id]: clip.poster }), {});
@ -173,7 +157,6 @@ export default {
},
computed: {
photos,
poster,
sfw,
},
};

View File

@ -44,8 +44,8 @@
<div
v-else
:title="release.title"
class="thumbnail unavailable"
><Icon icon="blocked" />No thumbnail available</div>
class="thumbnail"
>No thumbnail available</div>
</a>
</span>
@ -213,13 +213,6 @@ export default {
background-color: var(--shadow-hint);
color: var(--shadow);
text-shadow: 1px 1px 0 var(--highlight);
.icon {
display: none;
width: 2rem;
height: 2rem;
fill: var(--shadow-hint);
}
}
.row {
@ -346,12 +339,7 @@ export default {
.thumbnail {
width: 9rem;
height: 100%;
font-size: 0;
box-shadow: 0 0 3px var(--shadow-weak);
.icon {
display: block;
}
}
.info {

View File

@ -1,5 +0,0 @@
<!-- Generated by IcoMoon.io -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
<title>blocked</title>
<path d="M27.314 4.686c-3.022-3.022-7.040-4.686-11.314-4.686s-8.292 1.664-11.314 4.686c-3.022 3.022-4.686 7.040-4.686 11.314s1.664 8.292 4.686 11.314c3.022 3.022 7.040 4.686 11.314 4.686s8.292-1.664 11.314-4.686c3.022-3.022 4.686-7.040 4.686-11.314s-1.664-8.292-4.686-11.314zM28 16c0 2.588-0.824 4.987-2.222 6.949l-16.727-16.727c1.962-1.399 4.361-2.222 6.949-2.222 6.617 0 12 5.383 12 12zM4 16c0-2.588 0.824-4.987 2.222-6.949l16.727 16.727c-1.962 1.399-4.361 2.222-6.949 2.222-6.617 0-12-5.383-12-12z"></path>
</svg>

Before

Width:  |  Height:  |  Size: 671 B

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.159.9",
"version": "1.159.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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

View File

@ -304,9 +304,10 @@ async function scrapeScene(html, url, site, baseRelease, mobileHtml) {
];
const movie = $('.dvdLink');
const movieUrl = qu.prefixUrl(movie.attr('href'), site.url);
if (movieUrl) {
if (movie) {
const movieUrl = qu.prefixUrl(movie.attr('href'), site.url);
release.movie = {
url: movieUrl,
title: movie.attr('title'),