Fixed media duplicate fallbacks being ignored.

This commit is contained in:
2020-02-03 00:51:25 +01:00
parent b4c0b9f8eb
commit a96680875c
2 changed files with 2 additions and 2 deletions

View File

@@ -82,11 +82,11 @@ async function scrapeScene(html, url) {
const durationEl = qa('value').find(el => /\d{1,3}:\d{2}/.test(el.textContent));
release.duration = ql(durationEl);
release.poster = qp('video'); // _800.jpg is larger than _xl.jpg in landscape
const photosUrl = qu('a[href*=photos]');
if (photosUrl) {
release.photos = await fetchPhotos(photosUrl);
release.poster = qp('video'); // _800.jpg is larger than _xl.jpg in landscape
} else {
release.photos = qis('img[src*=ThumbNails]');
}