forked from DebaucheryLibrarian/traxxx
Fixed Kink trailer query.
This commit is contained in:
parent
a8fa1f36f8
commit
a339c096ef
|
@ -35,6 +35,8 @@ function scrapeAll(scenes, entity) {
|
||||||
photo,
|
photo,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
release.trailer = `https://cdnp.kink.com/imagedb/${release.entryId}/trailer/${release.entryId}_trailer_high.mp4`;
|
||||||
|
|
||||||
release.duration = query.dur('.video span');
|
release.duration = query.dur('.video span');
|
||||||
|
|
||||||
return release;
|
return release;
|
||||||
|
@ -61,32 +63,10 @@ function scrapeScene({ query }, url, entity) {
|
||||||
|
|
||||||
release.photos = query.imgs('.gallery .thumb img, #gallerySlider .gallery-img', { attribute: 'data-image-file' });
|
release.photos = query.imgs('.gallery .thumb img, #gallerySlider .gallery-img', { attribute: 'data-image-file' });
|
||||||
release.poster = query.poster();
|
release.poster = query.poster();
|
||||||
|
release.trailer = query.dataset('.player span[data-type="trailer-src"]', 'url') || `https://cdnp.kink.com/imagedb/${release.entryId}/trailer/${release.entryId}_trailer_high.mp4`;
|
||||||
|
|
||||||
release.tags = query.contents('.tag-list a[href*="/tag"]').map((tag) => tag.replace(/,\s*/, ''));
|
release.tags = query.contents('.tag-list a[href*="/tag"]').map((tag) => tag.replace(/,\s*/, ''));
|
||||||
|
|
||||||
const trailer = query.attribute('.player span[data-type="trailer-src"]', { attribute: 'data-url' });
|
|
||||||
|
|
||||||
if (trailer) {
|
|
||||||
release.trailer = [
|
|
||||||
{
|
|
||||||
src: trailer.replace('480p', '1080p'),
|
|
||||||
quality: 1080,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: trailer.replace('480p', '720p'),
|
|
||||||
quality: 720,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: trailer,
|
|
||||||
quality: 480,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: trailer.replace('480p', '360p'),
|
|
||||||
quality: 360,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
release.channel = slugify(query.url('.shoot-logo a')?.split('/').slice(-1)[0], '');
|
release.channel = slugify(query.url('.shoot-logo a')?.split('/').slice(-1)[0], '');
|
||||||
|
|
||||||
return release;
|
return release;
|
||||||
|
|
Loading…
Reference in New Issue