Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 27a9a233e2 1.205.15 2022-01-30 17:05:20 +01:00
DebaucheryLibrarian 22864105ac Writing media associations to disk for debugging. 2022-01-30 17:05:18 +01:00
4 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.205.14",
"version": "1.205.15",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.205.14",
"version": "1.205.15",
"license": "ISC",
"dependencies": {
"@casl/ability": "^5.2.2",

View File

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

View File

@ -846,6 +846,7 @@ async function associateReleaseMedia(releases, type = 'release') {
}
} catch (error) {
console.log(associations);
await fs.promises.writeFile(`./associations-${Date.now()}`, JSON.stringify(associations, null, 4));
throw error;
}
} catch (error) {

View File

@ -489,7 +489,7 @@ async function scrapeMovie({ query, el }, url, entity, baseRelease, options) {
const { dataLayer } = query.exec('//script[contains(text(), "dataLayer")]', ['dataLayer']);
const rawData = dataLayer?.[0]?.dvdDetails;
const data = rawData.dvdId && rawData; // dvdDetails is mostly empty in some cache states
const data = rawData?.dvdId && rawData; // dvdDetails is mostly empty in some cache states
release.entryId = new URL(url).pathname.match(/\/(\d+)(\/|$)/)?.[1];