updated regex to use htmlLinkRegex in config.js

This commit is contained in:
dylan 2025-12-25 17:23:48 +00:00
parent 14cbcede69
commit 9640a37f4a

View file

@ -6,30 +6,30 @@ import {
getReadingBooklogr,
getRSSItemTitle,
getTraktEpisode,
markdownLinkRegex,
htmlLinkRegex,
} from './utils.js'
export const items = [
{
id: 'blog',
regex: markdownLinkRegex('dylan.weblog.lol'),
regex: htmlLinkRegex('dylan.weblog.lol'),
getLatest: async () =>
getJsonFeedItemTitle('https://dylan.weblog.lol/feed.json'),
},
{
id: 'pics',
regex: markdownLinkRegex('https://dylan.some.pics/'),
regex: htmlLinkRegex('dylan.some.pics'),
getLatest: async () =>
getJsonFeedItemTitle('https://dylan.some.pics/feed.json'),
},
{
id: 'letterboxd',
regex: markdownLinkRegex('letterboxd.com/STFUDonny'),
regex: htmlLinkRegex('letterboxd.com/STFUDonny'),
getLatest: async () => getLetterboxdActivity('stfudonny', false),
},
{
id: 'trakt',
regex: markdownLinkRegex('trakt.tv/users/crankle'),
regex: htmlLinkRegex('trakt.tv/users/crankle'),
getLatest: async () =>
getTraktEpisode('crankle', '78e1e87b446901f7e4f0883dd4995cec', false),
},