projects
/
rss2maildir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11a4af2
)
Patch from MJ Ray for items without link
master
author
Brett Parker
<iDunno@sommitrealweird.co.uk>
Tue, 27 Feb 2018 10:21:46 +0000
(10:21 +0000)
committer
Brett Parker
<iDunno@sommitrealweird.co.uk>
Tue, 27 Feb 2018 10:21:46 +0000
(10:21 +0000)
- link might not always exist, md5sum is always present, don't fail on no link.
rss2maildir.py
patch
|
blob
|
history
diff --git
a/rss2maildir.py
b/rss2maildir.py
index e327bc3f046e6b345cef7f7a2bdfffd87ace643f..314a9c19ce4b881ea62fcd28bc34899322980240 100755
(executable)
--- a/
rss2maildir.py
+++ b/
rss2maildir.py
@@
-719,6
+719,8
@@
def parse_and_deliver(maildir, url, statedir):
prevmessageid = None
db_guid_key = None
+ if not item.has_key("link"):
+ item["link"] = u'#' + md5sum
db_link_key = (url + u'|' + item["link"]).encode("utf-8")
# check if there's a guid too - if that exists and we match the md5,