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-25 20:55:07 +00:00
|
|
|
getMastodonPost,
|
2025-12-22 02:42:53 +00:00
|
|
|
getReadingBooklogr,
|
2025-12-18 06:21:52 +00:00
|
|
|
getRSSItemTitle,
|
2025-12-25 18:52:29 +00:00
|
|
|
getTraktEpisode,
|
|
|
|
|
getTraktMovie,
|
2025-12-25 17:23:48 +00:00
|
|
|
htmlLinkRegex,
|
2025-12-18 05:53:32 +00:00
|
|
|
} from './utils.js'
|
2025-12-18 01:57:14 +00:00
|
|
|
|
2025-12-25 20:01:47 +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',
|
2025-12-25 17:23:48 +00:00
|
|
|
regex: htmlLinkRegex('dylan.weblog.lol'),
|
2025-12-18 01:57:14 +00:00
|
|
|
getLatest: async () =>
|
2025-12-25 16:49:20 +00:00
|
|
|
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',
|
2025-12-28 13:08:30 +00:00
|
|
|
regex: htmlLinkRegex('some.pics'),
|
2025-12-18 01:57:14 +00:00
|
|
|
getLatest: async () =>
|
2025-12-25 18:16:11 +00:00
|
|
|
getRSSItemTitle('https://dylan.some.pics/rss'),
|
2025-12-22 02:42:53 +00:00
|
|
|
},
|
2025-12-25 20:09:45 +00:00
|
|
|
{
|
|
|
|
|
id: 'lastfm',
|
2025-12-28 13:00:14 +00:00
|
|
|
regex: htmlLinkRegex('www.last.fm/music'),
|
2025-12-25 20:55:07 +00:00
|
|
|
getLatest: async () =>
|
|
|
|
|
getRSSItemTitle('https://lfm.xiffy.nl/lookathimthere'),
|
2025-12-25 20:09:45 +00:00
|
|
|
},
|
2025-12-25 20:33:40 +00:00
|
|
|
{
|
|
|
|
|
id: 'mastodon',
|
|
|
|
|
regex: htmlLinkRegex('social.lol/@dylan'),
|
2025-12-25 20:55:07 +00:00
|
|
|
getLatest: async () =>
|
|
|
|
|
getMastodonPost('https://social.lol/@dylan.rss'),
|
2025-12-25 20:33:40 +00:00
|
|
|
},
|
2025-12-18 05:35:31 +00:00
|
|
|
{
|
2025-12-18 05:53:32 +00:00
|
|
|
id: 'letterboxd',
|
2025-12-25 17:23:48 +00:00
|
|
|
regex: htmlLinkRegex('letterboxd.com/STFUDonny'),
|
2025-12-25 20:55:07 +00:00
|
|
|
getLatest: async () =>
|
|
|
|
|
getLetterboxdActivity('stfudonny', false),
|
2025-12-18 05:35:31 +00:00
|
|
|
},
|
2025-12-18 05:53:32 +00:00
|
|
|
{
|
2025-12-25 18:52:29 +00:00
|
|
|
id: 'trakt-episode',
|
2025-12-26 15:02:57 +00:00
|
|
|
regex: htmlLinkRegex('trakt.tv/episodes'),
|
2025-12-18 05:53:32 +00:00
|
|
|
getLatest: async () =>
|
2025-12-25 18:52:29 +00:00
|
|
|
getTraktEpisode('crankle', '78e1e87b446901f7e4f0883dd4995cec', false),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'trakt-movie',
|
2025-12-26 15:02:57 +00:00
|
|
|
regex: htmlLinkRegex('trakt.tv/movies'),
|
2025-12-25 20:55:07 +00:00
|
|
|
getLatest: async () =>
|
2025-12-25 22:53:41 +00:00
|
|
|
getTraktMovie('crankle', '78e1e87b446901f7e4f0883dd4995cec', false),
|
2025-12-18 06:21:52 +00:00
|
|
|
},
|
2025-12-18 05:53:32 +00:00
|
|
|
]
|