chore: 11ty img
This commit is contained in:
parent
2bcd6d3ee7
commit
73eb06739e
23 changed files with 728 additions and 270 deletions
|
@ -40,6 +40,8 @@ const fetchAllMovies = async () => {
|
|||
rangeStart += PAGE_SIZE
|
||||
}
|
||||
|
||||
movies = movies.filter(movie => movie.last_watched)
|
||||
|
||||
return movies
|
||||
}
|
||||
|
||||
|
@ -66,6 +68,7 @@ export default async function () {
|
|||
}
|
||||
return movie
|
||||
}).filter(movie => watched ? movie['lastWatched'] : !movie['lastWatched'])
|
||||
|
||||
const favoriteMovies = movies.filter(movie => movie['favorite'])
|
||||
const collectedMovies = movies.filter(movie => movie['collected'])
|
||||
const recentlyWatchedMovies = movies.filter(movie => movie['last_watched']).sort((a, b) => new Date(b['last_watched']) - new Date(a['last_watched']))
|
||||
|
|
Reference in a new issue