1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-23 16:22:45 +00:00

FIX: When searching for particular series, would error out in GUI due to invalid date responses, FIX: When new issue was present, but not populated on CV yet, would revert the starting publication date for the series to a ?, FIX: Filechecker would error out on issue_number_position error reference (usually during an import sequence)

This commit is contained in:
evilhero 2016-04-26 14:55:12 -04:00
parent 757939e756
commit 5183b87be2
3 changed files with 13 additions and 10 deletions

View file

@ -607,6 +607,7 @@ class FileChecker(object):
logger.fdebug('highest_series_position: ' + str(highest_series_pos))
issue_number = None
issue_number_position = 0
if len(possible_issuenumbers) > 0:
logger.fdebug('possible_issuenumbers: ' + str(possible_issuenumbers))
dash_numbers = []

View file

@ -1359,7 +1359,7 @@ def updateissuedata(comicid, comicname=None, issued=None, comicIssues=None, call
#logger.fdebug('assigning latest issue to : ' + str(issnum))
latestiss = issnum
latestdate = str(firstval['Issue_Date'])
if firstval['Issue_Date'] < firstdate:
if firstval['Issue_Date'] < firstdate and firstval['Issue_Date'] != '0000-00-00':
firstiss = issnum
firstdate = str(firstval['Issue_Date'])

View file

@ -286,16 +286,18 @@ def findComic(name, mode, issue, limityear=None, explicit=None, type=None):
xmlYr = result.getElementsByTagName('start_year')[0].firstChild.wholeText
else: xmlYr = "0000"
xmlYr = re.sub('\?', '', xmlYr)
tmpyearRange = int(xmlcnt) / 12
if float(tmpyearRange): tmpyearRange +1
possible_years = int(xmlYr) + tmpyearRange
yearRange = []
for i in range(int(xmlYr), int(possible_years),1):
if not any(int(x) == int(i) for x in yearRange):
yearRange.append(str(i))
tmpYr = re.sub('\?', '', xmlYr)
if tmpYr.isdigit():
tmpyearRange = int(xmlcnt) / 12
if float(tmpyearRange): tmpyearRange +1
possible_years = int(tmpYr) + tmpyearRange
for i in range(int(tmpYr), int(possible_years),1):
if not any(int(x) == int(i) for x in yearRange):
yearRange.append(str(i))
logger.fdebug('[RESULT] ComicName:' + xmlTag + ' -- ' + str(xmlYr) + ' [Series years: ' + str(yearRange) + ']')