Fix entry date parsing and don't include entry link twice
This commit is contained in:
parent
228c078087
commit
6d8aff3868
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -76,11 +76,11 @@ if __name__ == "__main__":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for entry in rss.entries:
|
for entry in rss.entries:
|
||||||
if time.mktime(rss.feed.published_parsed) <= config[url]:
|
if time.mktime(entry.published_parsed) <= config[url]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
notes = split_notes("[" + entry.title + "](" + entry.link + ")\n" + process_html(
|
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)
|
post_notes(client, notes)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue