forked from DebaucheryLibrarian/traxxx
Ignore join links for trailers in Dogfart scraper.
This commit is contained in:
parent
505ff0767c
commit
762b3984a3
|
@ -75,10 +75,14 @@ async function scrapeScene({ query }, url, channel, baseScene, parameters) {
|
||||||
|
|
||||||
release.tags = query.cnts('.scene-details .categories a');
|
release.tags = query.cnts('.scene-details .categories a');
|
||||||
|
|
||||||
release.trailer = query.video('.html5-video', 'data-trailer');
|
const trailer = query.video('.html5-video', 'data-trailer');
|
||||||
|
const lastPhotosUrl = query.urls('.pagination a').at(-1);
|
||||||
|
|
||||||
release.poster = query.poster('.html5-video', 'data-poster');
|
release.poster = query.poster('.html5-video', 'data-poster');
|
||||||
|
|
||||||
const lastPhotosUrl = query.urls('.pagination a').at(-1);
|
if (trailer && !trailer?.includes('join')) {
|
||||||
|
release.trailer = trailer;
|
||||||
|
}
|
||||||
|
|
||||||
if (lastPhotosUrl && parameters.includePhotos) {
|
if (lastPhotosUrl && parameters.includePhotos) {
|
||||||
release.photos = await getPhotos(`${origin}${pathname}${lastPhotosUrl}`, channel, url);
|
release.photos = await getPhotos(`${origin}${pathname}${lastPhotosUrl}`, channel, url);
|
||||||
|
|
Loading…
Reference in New Issue