now-updater/config.js

46 lines
1.1 KiB
JavaScript
Raw Normal View History

2025-12-18 01:57:14 +00:00
import {
getJsonFeedItemContent,
getJsonFeedItemTitle,
2025-12-18 05:35:31 +00:00
getLetterboxdActivity,
2025-12-18 02:39:27 +00:00
getMalojaScrobble,
2025-12-22 02:42:53 +00:00
getReadingBooklogr,
getRSSItemTitle,
getTraktEpisode,
getTraktMovie,
htmlLinkRegex,
2025-12-18 05:53:32 +00:00
} from './utils.js'
2025-12-18 01:57:14 +00:00
// Set to 'html' for HTML links or 'markdown' for markdown links
export const linkFormat = 'html'
2025-12-18 01:57:14 +00:00
export const items = [
{
2025-12-18 05:53:32 +00:00
id: 'blog',
regex: htmlLinkRegex('dylan.weblog.lol'),
2025-12-18 01:57:14 +00:00
getLatest: async () =>
getJsonFeedItemTitle('https://dylan.weblog.lol/feed.json'),
2025-12-18 01:57:14 +00:00
},
{
2025-12-18 05:53:32 +00:00
id: 'pics',
regex: htmlLinkRegex('dylan.some.pics'),
2025-12-18 01:57:14 +00:00
getLatest: async () =>
getRSSItemTitle('https://dylan.some.pics/rss'),
2025-12-22 02:42:53 +00:00
},
2025-12-18 05:35:31 +00:00
{
2025-12-18 05:53:32 +00:00
id: 'letterboxd',
regex: htmlLinkRegex('letterboxd.com/STFUDonny'),
getLatest: async () => getLetterboxdActivity('stfudonny', false),
2025-12-18 05:35:31 +00:00
},
2025-12-18 05:53:32 +00:00
{
id: 'trakt-episode',
regex: htmlLinkRegex('trakt.tv/users/crankle'),
2025-12-18 05:53:32 +00:00
getLatest: async () =>
getTraktEpisode('crankle', '78e1e87b446901f7e4f0883dd4995cec', false),
},
{
id: 'trakt-movie',
regex: htmlLinkRegex('trakt.tv/users/crankle'),
getLatest: async () => getTraktMovie('crankle', false),
},
2025-12-18 05:53:32 +00:00
]