Fix MAX_ITEM condition

master
pictuga 2013-11-24 20:49:14 +01:00
parent 1274df4e1d
commit 8832611a05
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ def Gather(url, cachePath, options):
startTime = time.time()
for i, item in enumerate(rss.items):
if options.progress:
if MAX_ITEM == 0:
if MAX_ITEM == -1:
print '%s/%s' % (i+1, size)
else:
print '%s/%s' % (i+1, min(MAX_ITEM, size))