Compare commits
No commits in common. "1032c3cb574b7a1d4521eca3d6b60d9dccd5e681" and "328550b9a309d69594b2b539aa09aab229d202cf" have entirely different histories.
1032c3cb57
...
328550b9a3
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.231.18",
|
"version": "1.231.17",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.231.18",
|
"version": "1.231.17",
|
||||||
"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.231.18",
|
"version": "1.231.17",
|
||||||
"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": {
|
||||||
|
|
|
@ -206,9 +206,8 @@ async function fetchEntitiesBySlug(entitySlugs, prefer = 'channel') {
|
||||||
parent_id,
|
parent_id,
|
||||||
array['parent'] as parent_path
|
array['parent'] as parent_path
|
||||||
FROM entities
|
FROM entities
|
||||||
WHERE (slug = ANY(:entitySlugs)
|
WHERE slug = ANY(:entitySlugs)
|
||||||
OR url ILIKE ANY(:entityHosts))
|
OR url ILIKE ANY(:entityHosts)
|
||||||
AND type IN ('channel', 'network')
|
|
||||||
|
|
||||||
UNION ALL
|
UNION ALL
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@ function scrapeProfile({ query }, url) {
|
||||||
profile.avatar = query.img('.model .photo img');
|
profile.avatar = query.img('.model .photo img');
|
||||||
profile.scenes = scrapeAll(unprint.initAll(query.all('.single .itemsingle')));
|
profile.scenes = scrapeAll(unprint.initAll(query.all('.single .itemsingle')));
|
||||||
|
|
||||||
|
console.log(profile);
|
||||||
return profile;
|
return profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,11 +89,8 @@ async function fetchLatest(channel, page) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchProfile(actor, { entity }) {
|
async function fetchProfile(actor, { entity }) {
|
||||||
const url = actor.url || `${entity.url}/modelos/${actor.slug}/`;
|
const url = actor.url || `${entity.url}/models/${actor.slug}/`;
|
||||||
|
const res = await unprint.get(url);
|
||||||
const res = await unprint.get(url, {
|
|
||||||
maxRedirects: 0, // will attempt to redirect invalid URL to relevant scene page
|
|
||||||
});
|
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
return scrapeProfile(res.context, url);
|
return scrapeProfile(res.context, url);
|
||||||
|
|
Loading…
Reference in New Issue