forked from DebaucheryLibrarian/traxxx
Fixed media duplicate fallbacks being ignored.
This commit is contained in:
@@ -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]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user