forked from DebaucheryLibrarian/traxxx
Added Arch Angel, updated BAM Visions scraper to accomodate Arch Angel (different network, same unidentified CMS).
This commit is contained in:
@@ -187,6 +187,7 @@ async function fetchEntitiesBySlug(entitySlugs, sort = 'asc') {
|
||||
array['parent'] as parent_path
|
||||
FROM entities
|
||||
WHERE slug = ANY(:entitySlugs)
|
||||
OR substring(url from 'https%://%#"[a-z0-9-]+#".(com|net)%' for '#') = ANY(:entitySlugs)
|
||||
|
||||
UNION ALL
|
||||
|
||||
@@ -217,6 +218,7 @@ async function fetchEntitiesBySlug(entitySlugs, sort = 'asc') {
|
||||
const entitiesBySlug = entities.rows.reduce((accEntities, { entity }) => ({
|
||||
...accEntities,
|
||||
[entity.slug]: accEntities[entity.slug] || curateEntity(entity, true),
|
||||
[urlToSiteSlug(entity.url)]: accEntities[entity.slug] || curateEntity(entity, true),
|
||||
}), {});
|
||||
|
||||
return entitiesBySlug;
|
||||
|
||||
Reference in New Issue
Block a user