From 8832611a053a1e6a354002f5e2a56e28ecb74ca0 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 24 Nov 2013 20:49:14 +0100 Subject: [PATCH] Fix MAX_ITEM condition --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 0fafd2d..9fff56b 100644 --- a/morss.py +++ b/morss.py @@ -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))