git.ucc.asn.au
/
planet-ucc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for dodgy blogs, new feedparser
[planet-ucc.git]
/
update-planet
diff --git
a/update-planet
b/update-planet
index
4e23e5b
..
0de1c28
100755
(executable)
--- a/
update-planet
+++ b/
update-planet
@@
-38,8
+38,10
@@
for feed in feeds:
blog.feedURL = feed[1]
blogs.append(blog)
# check the old copy of the cache, vs the new copy
blog.feedURL = feed[1]
blogs.append(blog)
# check the old copy of the cache, vs the new copy
- if not feed[2] or not feed[2].cache or not blog
or not blog
.cache or feed[2].cache != blog.cache:
+ if not feed[2] or not feed[2].cache or not blog.cache or feed[2].cache != blog.cache:
tainted = True
tainted = True
+ elif len(blog.items) > 0 and len(feed[2].items) > 0 and (blog.items[0].itemTitle != feed[2].items[0].itemTitle or blog.items[0].contents != feed[2].items[0].contents):
+ tainted = True
# write the cache back down to disk
cache.storeBlog(blog)
else:
# write the cache back down to disk
cache.storeBlog(blog)
else:
UCC
git Repository :: git.ucc.asn.au