Passing recursive parameters to all scraper methods. Using throttle parameters in MindGeek scraper, fixed missing slug breaking scene and actor URLs.

This commit is contained in:
DebaucheryLibrarian
2021-02-10 03:23:48 +01:00
parent 62ad786318
commit 7ff222ce25
7 changed files with 59 additions and 26 deletions

View File

@@ -0,0 +1,11 @@
'use strict';
function getRecursiveParameters(entity, parameters) {
if (entity.parent) {
return getRecursiveParameters(entity.parent, { ...parameters, ...entity.parameters });
}
return { ...parameters, ...entity.parameters };
}
module.exports = getRecursiveParameters;