diff --git a/tools/buttfeed.py b/tools/buttfeed.py index 20e8e541..ba38913b 100755 --- a/tools/buttfeed.py +++ b/tools/buttfeed.py @@ -29,6 +29,11 @@ def get_entries(): for name, url in k_feeds.items(): feed = feedparser.parse(url) for entry in feed.entries: + if '/issues/' in entry.link: + m = re.match(r'^(\d+)#(.*)#$', entry.description) + if m: + results.append((time.mktime(entry.get('updated_parsed')), name, entry.link, f'new issue #{m.group(1)}: {m.group(2)}')) + continue if entry.summary.startswith('.*?$\s*^([^\n]+)$', entry.summary, re.S | re.M): results.append((time.mktime(entry.get('updated_parsed')), name, m[0], m[1]))