now-updater/config.js

61 lines
1.5 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,
getMastodonPost,
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
},
{
id: 'lastfm',
regex: htmlLinkRegex('www.last.fm/user/lookathimthere'),
getLatest: async () =>
getRSSItemTitle('https://lfm.xiffy.nl/lookathimthere'),
},
{
id: 'mastodon',
regex: htmlLinkRegex('social.lol/@dylan'),
getLatest: async () =>
getMastodonPost('https://social.lol/@dylan.rss'),
},
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', '78e1e87b446901f7e4f0883dd4995cec', false),
},
2025-12-18 05:53:32 +00:00
]