Handling missing trailers in Kink scraper.

This commit is contained in:
DebaucheryLibrarian 2020-09-18 23:25:15 +02:00
parent d194d7107d
commit c94e1aaea9
1 changed files with 20 additions and 18 deletions

View File

@ -50,6 +50,7 @@ async function scrapeScene({ query }, url) {
const trailer = query.q('.player span[data-type="trailer-src"]', 'data-url'); const trailer = query.q('.player span[data-type="trailer-src"]', 'data-url');
if (trailer) {
release.trailer = [ release.trailer = [
{ {
src: trailer.replace('480p', '1080p'), src: trailer.replace('480p', '1080p'),
@ -68,6 +69,7 @@ async function scrapeScene({ query }, url) {
quality: 360, quality: 360,
}, },
]; ];
}
release.channel = query.url('.shoot-logo a').split('/').slice(-1)[0]; release.channel = query.url('.shoot-logo a').split('/').slice(-1)[0];