Compare commits
No commits in common. "20f82c4006d4ffdd3f8ae017a675afd4120df063" and "c2c329e00a634d369907843db0e97457ae1f07a7" have entirely different histories.
20f82c4006
...
c2c329e00a
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.227.12",
|
||||
"version": "1.227.11",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx",
|
||||
"version": "1.227.12",
|
||||
"version": "1.227.11",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@casl/ability": "^5.2.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.227.12",
|
||||
"version": "1.227.11",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -95,9 +95,8 @@ async function scrapeScene({ query }, { url, entity }) {
|
|||
|
||||
release.entryId = data?.['@id'] || decodeId(new URL(url).pathname.match(/\/video\/([\w-]+)\//)?.[1]);
|
||||
|
||||
// data title is not capitalized, prefer markup
|
||||
release.title = query.attribute('meta[property="og:title"]', 'content') || query.content('.video-container + div h1') || data?.name;
|
||||
release.description = data?.description || query.attribute('meta[property="og:description"]', 'content') || query.content('//div[contains(@class, "actions")]/preceding-sibling::p');
|
||||
release.title = data?.name || query.content('.video-container + div h1');
|
||||
release.description = data?.description || query.content('//div[contains(@class, "actions")]/preceding-sibling::p');
|
||||
|
||||
release.date = unprint.extractDate(data?.datePublished, 'YYYY-MM-DD') || query.date('//p[contains(text(), "Date:")]', 'MMM DD, YYYY');
|
||||
release.duration = unprint.extractTimestamp(data?.duration) || query.duration('//p[contains(text(), "Playtime:")]//span');
|
||||
|
@ -118,14 +117,14 @@ async function scrapeScene({ query }, { url, entity }) {
|
|||
|
||||
release.tags = query.contents('.actions .genres');
|
||||
|
||||
const sourcesData = query.json('.video-container [data-videopreview-sources-value]', { attribute: 'data-videopreview-sources-value' });
|
||||
const videoData = query.json('.video-container [data-videopreview-sources-value]', { attribute: 'data-videopreview-sources-value' });
|
||||
|
||||
release.poster = data?.thumbnailUrl || query.attribute('meta[property="og:image"]', 'content');
|
||||
release.teaser = (sourcesData && [
|
||||
sourcesData.mp4_large,
|
||||
sourcesData.webm_large,
|
||||
sourcesData.mp4,
|
||||
sourcesData.webm,
|
||||
release.teaser = (videoData && [
|
||||
videoData.mp4_large,
|
||||
videoData.webm_large,
|
||||
videoData.mp4,
|
||||
videoData.webm,
|
||||
])
|
||||
|| data?.contentUrl
|
||||
|| query.attribute('meta[property="og:video"]')
|
||||
|
|
Loading…
Reference in New Issue