- rawdog 2.12
+Only update the stored Etag and Last-Modified when a feed changes.
+
Add the "splitstate" option, which makes rawdog use a separate state
file for each feed rather than one large one. This significantly reduces
rawdog's memory usage at the cost of some more disk IO during --write.
decode_structure(p, p.get("encoding") or "UTF-8")
- self.etag = p.get("etag")
- self.modified = p.get("modified")
-
# In the event that the feed hasn't changed, then both channel
# and feed will be empty. In this case we return 0 so that
# we know not to expire articles that came from this feed.
if len(p["entries"]) == 0:
return False
+ self.etag = p.get("etag")
+ self.modified = p.get("modified")
+
self.feed_info = p["feed"]
feed = self.url