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-18 05:53:32 +00:00
getTraktEpisode,
2025-12-18 01:57:14 +00:00
markdownLinkRegex,
2025-12-18 05:53:32 +00:00
} from './utils.js'
2025-12-18 01:57:14 +00:00
export const items = [
{
2025-12-18 05:53:32 +00:00
id: 'blog',
regex: markdownLinkRegex('melkat.blog'),
2025-12-18 01:57:14 +00:00
getLatest: async () =>
2025-12-18 05:53:32 +00:00
getJsonFeedItemTitle('https://melkat.blog/feed.json'),
2025-12-18 01:57:14 +00:00
},
{
2025-12-18 05:53:32 +00:00
id: 'pics',
regex: markdownLinkRegex('melkat.pics'),
2025-12-18 01:57:14 +00:00
getLatest: async () =>
2025-12-18 05:53:32 +00:00
getJsonFeedItemTitle('https://melkat.pics/feed.json'),
2025-12-18 01:57:14 +00:00
},
{
2025-12-18 05:53:32 +00:00
id: 'lol',
regex: markdownLinkRegex('melkat.lol'),
2025-12-18 01:57:14 +00:00
getLatest: async () =>
2025-12-18 05:53:32 +00:00
getJsonFeedItemContent('https://melkat.lol/feed.json'),
2025-12-18 01:57:14 +00:00
},
2025-12-18 02:39:27 +00:00
{
2025-12-18 05:53:32 +00:00
id: 'maloja',
regex: markdownLinkRegex('scrobbles.melkat.dev'),
getLatest: async () => getMalojaScrobble('https://scrobbles.melkat.dev'),
2025-12-18 02:39:27 +00:00
},
2025-12-18 05:35:31 +00:00
{
2025-12-18 05:53:32 +00:00
id: 'letterboxd',
regex: markdownLinkRegex('letterboxd.com/zicklepop'),
getLatest: async () => getLetterboxdActivity('zicklepop'),
2025-12-18 05:35:31 +00:00
},
2025-12-18 05:53:32 +00:00
{
id: 'trakt',
regex: markdownLinkRegex('trakt.tv/users/zicklepop'),
getLatest: async () =>
getTraktEpisode('zicklepop', 'd0a982626d7793b5cf1857a2128277cc'),
},
]