feat: self host movies/tv

This commit is contained in:
Cory Dransfeldt 2024-05-14 10:38:55 -07:00
parent eccf1027b8
commit e3bf4c15e8
No known key found for this signature in database
13 changed files with 178 additions and 164 deletions

View file

@ -49,7 +49,6 @@ export const tagMap = (collection) => {
const posts = collectionData.data.collections.posts
const links = collectionData.data.collections.links
const books = collectionData.data.books
const movies = collectionData.data.movies
if (posts) posts.forEach((post) => {
const url = post.url.includes('http') ? post.url : `https://coryd.dev${post.url}`
@ -74,13 +73,6 @@ export const tagMap = (collection) => {
if (tagString) tags[book.url] = tagString.replace(/\s+/g,' ')
})
if (movies) movies.forEach((movie) => {
const tagString = movie['tags']?.map((tag) => tagAliases[tag.toLowerCase()])
.join(' ')
.trim()
if (tagString) tags[movie.url] = tagString.replace(/\s+/g,' ')
})
return tags
}