feat: dry up + normalize now page
This commit is contained in:
parent
022ce82f81
commit
6dda493d7b
13 changed files with 86 additions and 136 deletions
|
@ -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/'))
|
||||
|
|
Reference in a new issue