feat: dry up + normalize now page

This commit is contained in:
Cory Dransfeldt 2023-08-14 11:36:07 -07:00
parent 022ce82f81
commit 6dda493d7b
No known key found for this signature in database
13 changed files with 86 additions and 136 deletions

View file

@ -13,7 +13,7 @@ module.exports = async function () {
.map((item) => {
const images = item['content']?.match(/<img [^>]*src="[^"]*"[^>]*>/gm) || []
return {
name: item['title'],
title: item['title'],
date: item['pubDate'],
summary: item['contentSnippet'],
image: images.length
@ -23,6 +23,7 @@ module.exports = async function () {
: 'https://cdn.coryd.dev/movies/missing-movie.jpg',
url: item['link'],
id: item['guid'],
type: 'movie',
}
})
.filter((movie) => !movie.url.includes('/list/'))