Fix MAX_ITEM condition
parent
1274df4e1d
commit
8832611a05
2
morss.py
2
morss.py
|
@ -502,7 +502,7 @@ def Gather(url, cachePath, options):
|
||||||
startTime = time.time()
|
startTime = time.time()
|
||||||
for i, item in enumerate(rss.items):
|
for i, item in enumerate(rss.items):
|
||||||
if options.progress:
|
if options.progress:
|
||||||
if MAX_ITEM == 0:
|
if MAX_ITEM == -1:
|
||||||
print '%s/%s' % (i+1, size)
|
print '%s/%s' % (i+1, size)
|
||||||
else:
|
else:
|
||||||
print '%s/%s' % (i+1, min(MAX_ITEM, size))
|
print '%s/%s' % (i+1, min(MAX_ITEM, size))
|
||||||
|
|
Loading…
Reference in New Issue