Fixed Tokyo Hot deep scrape failing on missing trailer.

This commit is contained in:
DebaucheryLibrarian 2023-07-25 20:45:46 +02:00
parent 0e846bec3f
commit 40276a11f9
1 changed files with 7 additions and 5 deletions

View File

@ -46,12 +46,14 @@ function scrapeScene({ query }, url, channel) {
release.tags = query.contents('.info a[href*="type=play"]'); release.tags = query.contents('.info a[href*="type=play"]');
const poster = query.poster('.movie video'); const poster = query.poster('.movie video') || query.img('.movie img');
if (poster) {
release.poster = [ release.poster = [
poster, poster,
poster.replace('820x462', '220x124'), poster.replace('820x462', '220x124'),
]; ];
}
release.trailer = query.video('.movie source'); release.trailer = query.video('.movie source');