Compare commits

..

No commits in common. "03d96d4dece91c97f2c8f7c1f57ab3321ea5a689" and "196a1d33e395e7cef25b02cd2cedff75c4a9768d" have entirely different histories.

3 changed files with 5 additions and 17 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -500,10 +500,6 @@ async function scrapeMovie({ query, el }, url, entity, baseRelease, options) {
const rawData = dataLayer?.[0]?.dvdDetails;
const data = rawData?.dvdId && rawData; // dvdDetails is mostly empty in some cache states
if (query.exists('.NotFound-Title')) {
return null;
}
release.entryId = new URL(url).pathname.match(/\/(\d+)(\/|$)/)?.[1];
release.covers = [
@ -678,14 +674,10 @@ async function fetchSceneApi(url, site, baseRelease, options) {
encodeJSON: true,
});
if (res.status === 200 && res.body.results?.[0]?.hits.length > 0) {
if (res.status === 200 && res.body.results?.[0]?.hits) {
return scrapeReleaseApi(res.body.results[0].hits[0], site, options);
}
if (res.status === 200) {
return null;
}
return res.status;
}
@ -714,14 +706,10 @@ async function fetchMovieApi(url, site, baseRelease, options) {
encodeJSON: true,
});
if (res.status === 200 && res.body.results?.[0]?.hits.length > 0) {
if (res.status === 200 && res.body.results?.[0]?.hits) {
return scrapeReleaseApi(res.body.results[0].hits[0], site, options);
}
if (res.status === 200) {
return null;
}
return res.status;
}