forked from DebaucheryLibrarian/traxxx
Fixed qu issues. Fixed media issues. Simplified and expanded date component in search query.
This commit is contained in:
@@ -116,23 +116,23 @@ function scrapeLatest(html) {
|
||||
}
|
||||
|
||||
function scrapeScene(html, url) {
|
||||
const { q, qa, qd, qus, ql, qm } = ex(html);
|
||||
const { qu } = ex(html);
|
||||
const release = { url };
|
||||
|
||||
// release.entryId = slugify(release.title);
|
||||
[release.entryId] = q('link[rel="canonical"]').href.match(/\d+/);
|
||||
[release.entryId] = qu.q('link[rel="canonical"]').href.match(/\d+/);
|
||||
|
||||
release.title = qm('meta[property="og:title"]') || q('.video-page-header h1', true);
|
||||
release.title = qu.meta('meta[property="og:title"]') || qu.q('.video-page-header h1', true);
|
||||
release.description = qu.meta('meta[property="og:description"]') || qu.q('.info-video-description', true);
|
||||
|
||||
release.description = qm('meta[property="og:description"]') || q('.info-video-description', true);
|
||||
release.date = qd('.info-video-details li:first-child span', 'MMM DD, YYYY');
|
||||
release.duration = ql('.info-video-details li:nth-child(2) span');
|
||||
release.date = qu.date('.info-video-details li:first-child span', 'MMM DD, YYYY');
|
||||
release.duration = qu.dur('.info-video-details li:nth-child(2) span');
|
||||
|
||||
release.actors = qa('.info-video-models a', true);
|
||||
release.tags = qa('.info-video-category a', true);
|
||||
release.actors = qu.all('.info-video-models a', true);
|
||||
release.tags = qu.all('.info-video-category a', true);
|
||||
|
||||
release.photos = qus('.swiper-wrapper .swiper-slide a').map(source => source.replace('.jpg/', '.jpg'));
|
||||
release.poster = qm('meta[property="og:image"');
|
||||
release.photos = qu.urls('.swiper-wrapper .swiper-slide a').map(source => source.replace('.jpg/', '.jpg'));
|
||||
release.poster = qu.meta('meta[property="og:image"');
|
||||
|
||||
if (!release.poster) {
|
||||
const previewStart = html.indexOf('preview_url');
|
||||
|
||||
Reference in New Issue
Block a user