updated config to separate trakt episode and movie into distinct items

This commit is contained in:
dylan 2025-12-25 18:52:29 +00:00
parent 5328d0fd25
commit a64bce8020

View file

@ -5,7 +5,8 @@ import {
getMalojaScrobble, getMalojaScrobble,
getReadingBooklogr, getReadingBooklogr,
getRSSItemTitle, getRSSItemTitle,
getTraktEpisodeAndMovie, getTraktEpisode,
getTraktMovie,
htmlLinkRegex, htmlLinkRegex,
} from './utils.js' } from './utils.js'
@ -28,9 +29,14 @@ export const items = [
getLatest: async () => getLetterboxdActivity('stfudonny', false), getLatest: async () => getLetterboxdActivity('stfudonny', false),
}, },
{ {
id: 'trakt', id: 'trakt-episode',
regex: htmlLinkRegex('trakt.tv/users/crankle'), regex: htmlLinkRegex('trakt.tv/users/crankle'),
getLatest: async () => getLatest: async () =>
getTraktEpisodeAndMovie('crankle', '78e1e87b446901f7e4f0883dd4995cec', false), getTraktEpisode('crankle', '78e1e87b446901f7e4f0883dd4995cec', false),
},
{
id: 'trakt-movie',
regex: htmlLinkRegex('trakt.tv/users/crankle'),
getLatest: async () => getTraktMovie('crankle', false),
}, },
] ]