From 5ebd84ee5531d2b5d63e34f2fe399f5b9f8eb479 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 8 Sep 2013 15:47:15 +0200 Subject: [PATCH] Fix broken feeds.py calls for items count --- morss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss.py b/morss.py index 0d6eb81..1f48c4b 100644 --- a/morss.py +++ b/morss.py @@ -383,7 +383,7 @@ def Gather(url, cachePath, mode='feed'): return False rss = feeds.parse(xml) - size = len(rss) + size = len(rss.items) # set startTime = time.time() @@ -403,7 +403,7 @@ def Gather(url, cachePath, mode='feed'): else: Fill(item, cache, url) - log(len(rss)) + log(len(rss.items)) return rss.tostring(xml_declaration=True, encoding='UTF-8')