mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 08:42:37 +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:
parent
757939e756
commit
5183b87be2
3 changed files with 13 additions and 10 deletions
|
@ -607,6 +607,7 @@ class FileChecker(object):
|
||||||
logger.fdebug('highest_series_position: ' + str(highest_series_pos))
|
logger.fdebug('highest_series_position: ' + str(highest_series_pos))
|
||||||
|
|
||||||
issue_number = None
|
issue_number = None
|
||||||
|
issue_number_position = 0
|
||||||
if len(possible_issuenumbers) > 0:
|
if len(possible_issuenumbers) > 0:
|
||||||
logger.fdebug('possible_issuenumbers: ' + str(possible_issuenumbers))
|
logger.fdebug('possible_issuenumbers: ' + str(possible_issuenumbers))
|
||||||
dash_numbers = []
|
dash_numbers = []
|
||||||
|
|
|
@ -1359,7 +1359,7 @@ def updateissuedata(comicid, comicname=None, issued=None, comicIssues=None, call
|
||||||
#logger.fdebug('assigning latest issue to : ' + str(issnum))
|
#logger.fdebug('assigning latest issue to : ' + str(issnum))
|
||||||
latestiss = issnum
|
latestiss = issnum
|
||||||
latestdate = str(firstval['Issue_Date'])
|
latestdate = str(firstval['Issue_Date'])
|
||||||
if firstval['Issue_Date'] < firstdate:
|
if firstval['Issue_Date'] < firstdate and firstval['Issue_Date'] != '0000-00-00':
|
||||||
firstiss = issnum
|
firstiss = issnum
|
||||||
firstdate = str(firstval['Issue_Date'])
|
firstdate = str(firstval['Issue_Date'])
|
||||||
|
|
||||||
|
|
20
mylar/mb.py
20
mylar/mb.py
|
@ -286,16 +286,18 @@ def findComic(name, mode, issue, limityear=None, explicit=None, type=None):
|
||||||
xmlYr = result.getElementsByTagName('start_year')[0].firstChild.wholeText
|
xmlYr = result.getElementsByTagName('start_year')[0].firstChild.wholeText
|
||||||
else: xmlYr = "0000"
|
else: xmlYr = "0000"
|
||||||
|
|
||||||
xmlYr = re.sub('\?', '', xmlYr)
|
|
||||||
|
|
||||||
tmpyearRange = int(xmlcnt) / 12
|
|
||||||
if float(tmpyearRange): tmpyearRange +1
|
|
||||||
possible_years = int(xmlYr) + tmpyearRange
|
|
||||||
|
|
||||||
yearRange = []
|
yearRange = []
|
||||||
for i in range(int(xmlYr), int(possible_years),1):
|
tmpYr = re.sub('\?', '', xmlYr)
|
||||||
if not any(int(x) == int(i) for x in yearRange):
|
|
||||||
yearRange.append(str(i))
|
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) + ']')
|
logger.fdebug('[RESULT] ComicName:' + xmlTag + ' -- ' + str(xmlYr) + ' [Series years: ' + str(yearRange) + ']')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue