Fix entry date parsing and don't include entry link twice

This commit is contained in:
pancakes 2024-11-25 18:04:41 +10:00
parent 228c078087
commit 6d8aff3868
No known key found for this signature in database
GPG key ID: ED53D426432B861B

View file

@ -76,11 +76,11 @@ if __name__ == "__main__":
continue
for entry in rss.entries:
if time.mktime(rss.feed.published_parsed) <= config[url]:
if time.mktime(entry.published_parsed) <= config[url]:
continue
notes = split_notes("[" + entry.title + "](" + entry.link + ")\n" + process_html(
entry.content[0].value) + "\n\n" + entry.link, char_limit)
entry.content[0].value), char_limit)
post_notes(client, notes)