Compare commits

..

No commits in common. "66439b3b17d9c2956ae9ffa6fb92784cc4ffbe70" and "05788c2ed6ab2b2395e3fb24e650496701f7a826" have entirely different histories.

5 changed files with 6 additions and 23 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -1 +0,0 @@
<iframe style="background-color: white;" width="728" height="90" scrolling="no" frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" name="spot_id_10002481" src="//a.adtng.com/get/10002481?ata=DebaucheryLibrarian"></iframe>

View File

@ -261,12 +261,6 @@ const campaigns = [
affiliate: 'bang_signup',
comment: 'per signup',
},
// brazzers
{
network: 'brazzers',
banner: 'brazzers_728_90',
comment: 'per signup',
},
// dfxtra / dogfart
{
network: 'dfxtra',
@ -699,8 +693,6 @@ exports.seed = async (knex) => Promise.resolve()
}));
}
console.log(file);
return {
id: path.parse(file).name,
network,
@ -777,7 +769,6 @@ exports.seed = async (knex) => Promise.resolve()
url: campaign.url,
affiliate_id: campaign.affiliate,
banner_id: campaign.banner,
html: campaign.html,
})).filter((link) => link.entity_id && (link.url || link.affiliate_id));
await knex('affiliates').insert(affiliatesWithEntityId);

View File

@ -5,8 +5,6 @@ const unprint = require('unprint');
const slugify = require('../utils/slugify');
const { feetInchesToCm } = require('../utils/convert');
const placeholder = /images\/p\d+\.jpe?g/i;
function getEntryId(release) {
return slugify(new URL(release.url).pathname.match(/\/([\w-]+)\.html/)?.[1]
|| [unprint.formatDate(release.date, 'YYYY-MM-DD'), release.title, ...release.actors]);
@ -30,7 +28,7 @@ function scrapeAll(scenes) {
const poster = query.img('img.mainThumb');
if (poster && !placeholder.test(poster)) {
if (poster && !/images\/p\d+\.jpe?g/i.test(poster)) {
release.poster = poster;
}
@ -56,12 +54,7 @@ function scrapeScene({ query, html }, { url }) {
url: unprint.query.url(actorEl, null),
}));
const poster = query.img('.update_thumb') || html.match(/poster="(.*\.jpg)"/)?.[1];
if (poster && !placeholder.test(poster)) {
release.poster = poster;
}
release.poster = query.img('.update_thumb') || html.match(/poster="(.*\.jpg)"/)?.[1];
release.trailer = html.match(/src="(.*\.mp4)"/)?.[1];
release.photoCount = query.number('.info', { match: /(\d+) photos/i, matchIndex: 1 });
@ -122,7 +115,7 @@ function scrapeProfile({ query, element }, { url, entity }) {
query.img('.model_bio_thumb', { attribute: 'src0_2x', origin: entity.url }),
query.img('.model_bio_thumb', { attribute: 'src0_1x', origin: entity.url }),
query.img('.model_bio_thumb', { attribute: 'src0', origin: entity.url }),
].filter((avatar) => avatar && !placeholder.test(avatar));
].filter(Boolean);
profile.scenes = scrapeAll(unprint.initAll(element, '.item-video'));