Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
568f8aad45 1.250.53 2026-03-27 03:32:29 +01:00
DebaucheryLibrarian
01c4b61f03 No longer Bang @id field for entryId, this is now the full URL for some reason. 2026-03-27 03:32:26 +01:00
3 changed files with 6 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.250.52",
"version": "1.250.53",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.250.52",
"version": "1.250.53",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

@@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.250.52",
"version": "1.250.53",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@@ -125,7 +125,9 @@ async function scrapeScene({ query }, { url, entity }) {
const release = {};
const data = query.json('//script[contains(text(), "VideoObject")]');
release.entryId = data?.['@id'] || decodeId(new URL(url).pathname.match(/\/video\/([\w-]+)\//)?.[1]);
// @id can be URL for some reason
// release.entryId = data?.['@id'] || decodeId(new URL(url).pathname.match(/\/video\/([\w-]+)\//)?.[1]);
release.entryId = 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;