forked from DebaucheryLibrarian/traxxx
Added new bulk upsert utility.
This commit is contained in:
@@ -12,9 +12,11 @@ function extractActors(actorString) {
|
||||
}
|
||||
|
||||
function matchActors(actorString, models) {
|
||||
return models
|
||||
.filter(model => new RegExp(model.name, 'i')
|
||||
.test(actorString));
|
||||
if (!actorString) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return models.filter(model => new RegExp(model.name, 'i').test(actorString));
|
||||
}
|
||||
|
||||
function scrapeLatest(scenes, site, models) {
|
||||
|
||||
Reference in New Issue
Block a user