Fixed Tokyo Hot deep scrape failing on missing trailer.
This commit is contained in:
parent
0e846bec3f
commit
40276a11f9
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue