Compare commits

..

No commits in common. "21a3bc44e6859add09d79301064299a0f59d34e5" and "f1c9ac420727a95537f91239b9d312db97e7e5dd" have entirely different histories.

3 changed files with 9 additions and 20 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -3,7 +3,7 @@
const slugify = require('../utils/slugify');
const qu = require('../utils/qu');
async function getPhotos(albumUrl, channel) {
async function getPhotos(albumUrl) {
const res = await qu.get(albumUrl);
if (!res.ok) {
@ -14,21 +14,12 @@ async function getPhotos(albumUrl, channel) {
const lastPhotoIndex = parseInt(lastPhotoPage.match(/\d+.jpg/)[0], 10);
const photoUrls = Array.from({ length: lastPhotoIndex }, (value, index) => {
const pageUrl = `${channel.url}${lastPhotoPage.replace(/\d+.jpg/, `${(index + 1).toString().padStart(3, '0')}.jpg`)}`;
const networkPageUrl = `https://dogfartnetwork.com${lastPhotoPage.replace('tourx', 'tour').replace(/\d+.jpg/, `${(index + 1).toString().padStart(3, '0')}.jpg`)}`;
const pageUrl = `https://blacksonblondes.com${lastPhotoPage.replace(/\d+.jpg/, `${(index + 1).toString().padStart(3, '0')}.jpg`)}`;
const extract = ({ query }) => query.img('.scenes-module img');
return [
{
url: pageUrl,
extract,
},
{
url: networkPageUrl,
extract,
},
];
return {
url: pageUrl,
extract: ({ query }) => query.img('.scenes-module img'),
};
});
return photoUrls;
@ -99,8 +90,6 @@ async function scrapeScene({ query }, url, channel, baseScene, parameters) {
release.stars = Number(((query.number('span[itemprop="average"], span[itemprop="ratingValue"]') || query.number('canvas[data-score]', null, 'data-score')) / 2).toFixed(2));
console.log(release.photos);
return release;
}