From b313ace3286036dbcf3dfd0893b281ce5c9b6b45 Mon Sep 17 00:00:00 2001 From: evilhero Date: Mon, 4 Mar 2013 20:05:26 -0500 Subject: [PATCH] FIX:(#247) Clicking on Add Series would return no search results for some series --- mylar/mb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mylar/mb.py b/mylar/mb.py index 018d2112..99179d12 100755 --- a/mylar/mb.py +++ b/mylar/mb.py @@ -80,7 +80,10 @@ def findComic(name, mode, issue, limityear=None): xmlcnt = result.getElementsByTagName('count_of_issues')[0].firstChild.wholeText #here we can determine what called us, and either start gathering all issues or just limited ones. #print ("n: " + str(n) + "--xmcnt" + str(xmlcnt)) - if issue is not None: limiter = int(issue) + if issue is not None: + #this gets buggered up with NEW/ONGOING series because the db hasn't been updated + #to reflect the proper count. Drop it by 1 to make sure. + limiter = int(issue) - 1 else: limiter = 0 if int(xmlcnt) >= limiter: