Compare commits
2 Commits
c3dad0b523
...
a68c8539fd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a68c8539fd | ||
|
|
a3ae82dcd3 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.254.13",
|
"version": "1.254.14",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.254.13",
|
"version": "1.254.14",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.458.0",
|
"@aws-sdk/client-s3": "^3.458.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.254.13",
|
"version": "1.254.14",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -4,12 +4,13 @@ const unprint = require('unprint');
|
|||||||
const slugify = require('../src/utils/slugify');
|
const slugify = require('../src/utils/slugify');
|
||||||
|
|
||||||
const limit = Number(process.env.MV_LIMIT) || 1000;
|
const limit = Number(process.env.MV_LIMIT) || 1000;
|
||||||
|
const sorting = process.env.MV_SORT || 'followers'; // followers, top, mostActive, newest, trending
|
||||||
|
|
||||||
async function fetchCreators(page = 1, acc = []) {
|
async function fetchCreators(page = 1, acc = []) {
|
||||||
console.log(`Fetching creators ${acc.length}/${limit}`);
|
console.log(`Fetching creators ${acc.length}/${limit}`);
|
||||||
|
|
||||||
// size seems to be capped at 70
|
// size seems to be capped at 70
|
||||||
const res = await unprint.get(`https://api.manyvids.com/search/creators/list?contentPref=1,2,3&sort=top&size=50&from=${(page - 1) * 50}`);
|
const res = await unprint.get(`https://api.manyvids.com/search/creators/list?contentPref=1,2,3&sort=${sorting}&size=50&from=${(page - 1) * 50}`);
|
||||||
|
|
||||||
if (res.ok && res.data?.creators) {
|
if (res.ok && res.data?.creators) {
|
||||||
const creators = acc.concat(res.data.creators.map((creator) => ({
|
const creators = acc.concat(res.data.creators.map((creator) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user