Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
a68c8539fd 1.254.14 2026-07-09 00:16:09 +02:00
DebaucheryLibrarian
a3ae82dcd3 Added sorting env to ManyVids seed, changed default to followers instead of top. 2026-07-09 00:16:07 +02:00
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.254.13",
"version": "1.254.14",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.254.13",
"version": "1.254.14",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

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

View File

@@ -4,12 +4,13 @@ const unprint = require('unprint');
const slugify = require('../src/utils/slugify');
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 = []) {
console.log(`Fetching creators ${acc.length}/${limit}`);
// 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) {
const creators = acc.concat(res.data.creators.map((creator) => ({