forked from DebaucheryLibrarian/traxxx
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');
|
||||||
|
|
||||||
release.poster = [
|
if (poster) {
|
||||||
poster,
|
release.poster = [
|
||||||
poster.replace('820x462', '220x124'),
|
poster,
|
||||||
];
|
poster.replace('820x462', '220x124'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
release.trailer = query.video('.movie source');
|
release.trailer = query.video('.movie source');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue