Improved case resolution in tag matching. Fixed Kelly Madison scraper returning BTS tag when indicating 'BTS available'.
This commit is contained in:
@@ -75,7 +75,8 @@ function scrapeSceneApi(data, channel, parameters) {
|
||||
}));
|
||||
}
|
||||
|
||||
release.tags = data.categories.map((category) => category.name);
|
||||
// BTS category is used to indicate the scene has a BTS video available, not that it itself is a BTS
|
||||
release.tags = data.categories.map((category) => (category.name.toLowerCase() === 'bts' ? 'bts available' : category.name));
|
||||
release.photoCount = data.photosetPhotoCount || data.episode_photoset_photo_count;
|
||||
|
||||
return release;
|
||||
|
||||
Reference in New Issue
Block a user