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

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