Compare commits
No commits in common. "8a21ce98b15c3eafb777abfece254dce9ddcba68" and "bc51a917341eb85f9104c7afc686245b5326fc10" have entirely different histories.
8a21ce98b1
...
bc51a91734
|
@ -1,16 +1,13 @@
|
||||||
import utc from 'dayjs/plugin/utc';
|
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
dayjs.extend(utc);
|
|
||||||
|
|
||||||
const dateRanges = {
|
const dateRanges = {
|
||||||
latest: () => ({
|
latest: () => ({
|
||||||
after: '1900-01-01 00:00:00',
|
after: '1900-01-01 00:00:00',
|
||||||
before: dayjs.utc().format('YYYY-MM-DD HH:mm:ss'),
|
before: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
||||||
orderBy: 'DATE_DESC',
|
orderBy: 'DATE_DESC',
|
||||||
}),
|
}),
|
||||||
upcoming: () => ({
|
upcoming: () => ({
|
||||||
after: dayjs.utc().format('YYYY-MM-DD HH:mm:ss'),
|
after: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
||||||
before: '2100-01-01 00:00:00',
|
before: '2100-01-01 00:00:00',
|
||||||
orderBy: 'DATE_ASC',
|
orderBy: 'DATE_ASC',
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.123.7",
|
"version": "1.123.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.123.7",
|
"version": "1.123.6",
|
||||||
"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": {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 458 KiB After Width: | Height: | Size: 525 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 7.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 36 KiB |
|
@ -685,7 +685,7 @@ const tagPhotos = [
|
||||||
['da-tp', 0, 'Natasha Teen in LegalPorno SZ2164'],
|
['da-tp', 0, 'Natasha Teen in LegalPorno SZ2164'],
|
||||||
['da-tp', 1, 'Francys Belle in SZ1702 for LegalPorno'],
|
['da-tp', 1, 'Francys Belle in SZ1702 for LegalPorno'],
|
||||||
['dap', 6, 'Sheena Shaw in "Ass Worship 14" for Jules Jordan'],
|
['dap', 6, 'Sheena Shaw in "Ass Worship 14" for Jules Jordan'],
|
||||||
['dap', 9, 'Vicky Sol in GIO1547 for LegalPorno'],
|
['dap', 9, 'Polly Pons in LegalPorno GIO1520'],
|
||||||
['dap', 1, 'Ria Sunn in SZ1801 for LegalPorno'],
|
['dap', 1, 'Ria Sunn in SZ1801 for LegalPorno'],
|
||||||
['dap', 2, 'Lana Rhoades in "Lana Rhoades Unleashed" for HardX'],
|
['dap', 2, 'Lana Rhoades in "Lana Rhoades Unleashed" for HardX'],
|
||||||
['dap', 5, 'Riley Reid in "The Gangbang of Riley Reid" for Jules Jordan'],
|
['dap', 5, 'Riley Reid in "The Gangbang of Riley Reid" for Jules Jordan'],
|
||||||
|
|
|
@ -146,16 +146,12 @@ async function getSession(url) {
|
||||||
const cookieJar = new CookieJar();
|
const cookieJar = new CookieJar();
|
||||||
const session = bhttp.session({ cookieJar });
|
const session = bhttp.session({ cookieJar });
|
||||||
|
|
||||||
const res = await session.get(url);
|
await session.get(url);
|
||||||
|
|
||||||
if (res.statusCode === 200) {
|
const cookieString = await cookieJar.getCookieStringAsync(url);
|
||||||
const cookieString = await cookieJar.getCookieStringAsync(url);
|
const { instance_token: instanceToken } = cookieToData(cookieString);
|
||||||
const { instance_token: instanceToken } = cookieToData(cookieString);
|
|
||||||
|
|
||||||
return { session, instanceToken };
|
return { session, instanceToken };
|
||||||
}
|
|
||||||
|
|
||||||
throw new Error(`Failed to acquire MindGeek session: ${res.statusCode}`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrapeProfile(data, html, releases = [], networkName) {
|
function scrapeProfile(data, html, releases = [], networkName) {
|
||||||
|
@ -246,14 +242,11 @@ async function fetchUpcoming(site) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchScene(url, site, baseScene) {
|
async function fetchScene(url, site, baseScene) {
|
||||||
if (baseScene?.entryId) {
|
|
||||||
// overview and deep data is the same, don't hit server unnecessarily
|
|
||||||
return baseScene;
|
|
||||||
}
|
|
||||||
|
|
||||||
const entryId = url.match(/\d+/)[0];
|
const entryId = url.match(/\d+/)[0];
|
||||||
const { session, instanceToken } = await getSession(url);
|
const { session, instanceToken } = await getSession(url);
|
||||||
|
|
||||||
|
console.log(baseScene);
|
||||||
|
|
||||||
const res = await session.get(`https://site-api.project1service.com/v2/releases/${entryId}`, {
|
const res = await session.get(`https://site-api.project1service.com/v2/releases/${entryId}`, {
|
||||||
headers: {
|
headers: {
|
||||||
Instance: instanceToken,
|
Instance: instanceToken,
|
||||||
|
|
Loading…
Reference in New Issue