Fix broken feeds.py calls for items count
parent
fe89a70f24
commit
5ebd84ee55
4
morss.py
4
morss.py
|
@ -383,7 +383,7 @@ def Gather(url, cachePath, mode='feed'):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
rss = feeds.parse(xml)
|
rss = feeds.parse(xml)
|
||||||
size = len(rss)
|
size = len(rss.items)
|
||||||
|
|
||||||
# set
|
# set
|
||||||
startTime = time.time()
|
startTime = time.time()
|
||||||
|
@ -403,7 +403,7 @@ def Gather(url, cachePath, mode='feed'):
|
||||||
else:
|
else:
|
||||||
Fill(item, cache, url)
|
Fill(item, cache, url)
|
||||||
|
|
||||||
log(len(rss))
|
log(len(rss.items))
|
||||||
|
|
||||||
return rss.tostring(xml_declaration=True, encoding='UTF-8')
|
return rss.tostring(xml_declaration=True, encoding='UTF-8')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue