Handling missing trailers in Kink scraper.
This commit is contained in:
parent
d194d7107d
commit
c94e1aaea9
|
@ -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];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue