Compare commits
2 Commits
7cf47cbf8d
...
27a9a233e2
Author | SHA1 | Date |
---|---|---|
|
27a9a233e2 | |
|
22864105ac |
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.205.14",
|
"version": "1.205.15",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.205.14",
|
"version": "1.205.15",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@casl/ability": "^5.2.2",
|
"@casl/ability": "^5.2.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.205.14",
|
"version": "1.205.15",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -846,6 +846,7 @@ async function associateReleaseMedia(releases, type = 'release') {
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(associations);
|
console.log(associations);
|
||||||
|
await fs.promises.writeFile(`./associations-${Date.now()}`, JSON.stringify(associations, null, 4));
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -489,7 +489,7 @@ async function scrapeMovie({ query, el }, url, entity, baseRelease, options) {
|
||||||
|
|
||||||
const { dataLayer } = query.exec('//script[contains(text(), "dataLayer")]', ['dataLayer']);
|
const { dataLayer } = query.exec('//script[contains(text(), "dataLayer")]', ['dataLayer']);
|
||||||
const rawData = dataLayer?.[0]?.dvdDetails;
|
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];
|
release.entryId = new URL(url).pathname.match(/\/(\d+)(\/|$)/)?.[1];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue