Compare commits
2 Commits
ee495a5cde
...
41b1f39752
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41b1f39752 | ||
|
|
c75c3e3ed9 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.249.4",
|
||||
"version": "1.249.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx",
|
||||
"version": "1.249.4",
|
||||
"version": "1.249.5",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.458.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.249.4",
|
||||
"version": "1.249.5",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -922,6 +922,8 @@ function scrapeApiProfile(data, releases, siteSlug) {
|
||||
|
||||
if (releases) profile.releases = releases.map((release) => `https://${siteSlug}.com/en/video/${release.url_title}/${release.clip_id}`);
|
||||
|
||||
console.log(profile);
|
||||
|
||||
return profile;
|
||||
}
|
||||
|
||||
@@ -956,8 +958,6 @@ async function fetchApiProfile({ name: actorName }, context, include) {
|
||||
encodeJSON: true,
|
||||
});
|
||||
|
||||
console.log(res.status, res.body.results[0].hits[0]);
|
||||
|
||||
if (res.status === 200 && res.body.results[0].hits.length > 0) {
|
||||
const actorData = res.body.results[0].hits.find((actor) => slugify(actor.name) === slugify(actorName));
|
||||
|
||||
|
||||
@@ -329,7 +329,8 @@ const validators = {
|
||||
|
||||
// profiler in this context is shorthand for profile scraper
|
||||
async function init() {
|
||||
const entitiesBySlug = await fetchEntitiesBySlug(Object.keys(actorScrapers), { types: ['channel', 'network', 'info'], prefer: 'channel' });
|
||||
// Pride Studios needs prefer network, probably works bests for most Gamma sites. Establish which scrapers need channel and why.
|
||||
const entitiesBySlug = await fetchEntitiesBySlug(Object.keys(actorScrapers), { types: ['channel', 'network', 'info'], prefer: 'network' });
|
||||
|
||||
await Object.entries(actorScrapers).reduce(async (chain, [entitySlug, scraper]) => {
|
||||
await chain;
|
||||
|
||||
Reference in New Issue
Block a user