From 105a4dc46f86f6c3404f6babf60ebf2b110d3900 Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 19 Feb 2013 02:57:41 -0500 Subject: [PATCH] FIX:(#216) Pull-list would mistakingly assume that the word ONGOING was part of the comic title and would fail on match-ups for new issues --- mylar/weeklypull.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mylar/weeklypull.py b/mylar/weeklypull.py index 62910388..b6f35a86 100755 --- a/mylar/weeklypull.py +++ b/mylar/weeklypull.py @@ -179,8 +179,11 @@ def pullit(): issue = "NA" break issue = issname[n] - #print ("issue found : " + issname[n]) - comicend = n - 1 + if 'ongoing' not in issname[n-1].lower(): + #print ("issue found : " + issname[n]) + comicend = n - 1 + else: + comicend = n - 2 break n+=1 if issue == "": issue = 'NA'