fix: assorted bugs

This commit is contained in:
Cory Dransfeldt 2024-05-14 17:03:52 -07:00
parent f0041e0525
commit b936711d76
No known key found for this signature in database
7 changed files with 12 additions and 7 deletions

View file

@ -3,7 +3,7 @@ export default async function () {
const feed = new ActivityFeed()
feed.addSource('rss', '📝', 'https://coryd.dev/feeds/posts')
feed.addSource('rss', '🎥', 'https://coryd.dev/feeds/movies')
// feed.addSource('rss', '🎥', 'https://coryd.dev/feeds/movies')
feed.addSource('rss', '📖', 'https://coryd.dev/feeds/books')
feed.addSource('rss', '🔗', 'https://coryd.dev/feeds/links')
feed.addSource('rss', '🎧', 'https://coryd.dev/feeds/weekly-artist-chart')

View file

@ -47,6 +47,7 @@ export default async function () {
const movie = {
title: item['title'],
lastWatched: item['last_watched'],
dateAdded: item['last_watched'],
year: item['year'],
url: `https://www.themoviedb.org/movie/${item['tmdb_id']}`,
description: `<p>${item['title']} (${item['year']})</p><p>Watched at: ${DateTime.fromISO(item['last_watched'], { zone: 'utc' }).setZone('America/Los_Angeles').toFormat('MMMM d, yyyy, h:mma')}</p>`,

View file

@ -81,6 +81,7 @@ export default async function () {
tmdbId: showTmdbId,
collected,
favorite,
dateAdded: lastWatchedAt,
lastWatchedAt,
episodes: []
}
@ -96,6 +97,7 @@ export default async function () {
type: 'tv',
image: `https://coryd.dev/media/shows/poster-${showTmdbId}.jpg`,
backdrop: `https://coryd.dev/media/shows/backdrops/backdrop-${showTmdbId}.jpg`,
dateAdded: lastWatchedAt,
lastWatchedAt
})
})