updated trakt episode and movie image URLs to use poster instead of thumb

This commit is contained in:
dylan 2025-12-28 20:53:09 +00:00
parent c712c387ae
commit 37c167fc38

View file

@ -293,7 +293,7 @@ export async function getTraktEpisode(config) {
const title = entry.querySelector('title').textContent
const link = entry.querySelector('link').getAttribute('href')
const image = showImage
? `https://widgets.trakt.tv/users/${traktId}/watched/thumb@2x.jpg?type=episode&image_only=1`
? `https://widgets.trakt.tv/users/${traktId}/watched/poster@2x.jpg?type=episode&image_only=1`
: null
return { text: title, url: link, image }
}
@ -311,7 +311,7 @@ export async function getTraktMovie(config) {
const title = entry.querySelector('title').textContent
const link = entry.querySelector('link').getAttribute('href')
const image = showImage
? `https://widgets.trakt.tv/users/${traktId}/watched/thumb@2x.jpg?type=movie&image_only=1`
? `https://widgets.trakt.tv/users/${traktId}/watched/poster@2x.jpg?type=movie&image_only=1`
: null
return { text: title, url: link, image }
}