Fixed Gamma scraper breaking when scene has no movie. Improved missing thumbnail presentation on mobile scene tiles.

This commit is contained in:
DebaucheryLibrarian 2021-01-25 23:24:51 +01:00
parent dba99a4170
commit b80eca35d8
3 changed files with 21 additions and 5 deletions

View File

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

View File

@ -0,0 +1,5 @@
<!-- 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>

After

Width:  |  Height:  |  Size: 671 B

View File

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