mirror of
https://github.com/evilhero/mylar
synced 2025-02-08 07:15:16 +00:00
FIX: Fix for TPB/One-Shot file rechecking expecting an issue number, but one not being present due to the type
This commit is contained in:
parent
8a350ba231
commit
d2e03646d2
1 changed files with 11 additions and 2 deletions
|
@ -1093,12 +1093,17 @@ def forceRescan(ComicID, archive=None, module=None, recheck=False):
|
|||
return
|
||||
else:
|
||||
break
|
||||
|
||||
if tmpfc['JusttheDigits'] is not None:
|
||||
temploc= tmpfc['JusttheDigits'].replace('_', ' ')
|
||||
temploc = re.sub('[\#\']', '', temploc)
|
||||
logger.fdebug('temploc: %s' % temploc)
|
||||
else:
|
||||
temploc = None
|
||||
#assume 1 if not given
|
||||
if any([booktype == 'TPB', booktype == 'One-Shot']):
|
||||
temploc = '1'
|
||||
else:
|
||||
temploc = None
|
||||
|
||||
if all(['annual' not in temploc.lower(), 'special' not in temploc.lower()]):
|
||||
#remove the extension here
|
||||
|
@ -1123,7 +1128,11 @@ def forceRescan(ComicID, archive=None, module=None, recheck=False):
|
|||
|
||||
fnd_iss_except = 'None'
|
||||
|
||||
fcdigit = helpers.issuedigits(temploc)
|
||||
if temploc is not None:
|
||||
fcdigit = helpers.issuedigits(temploc)
|
||||
elif any([booktype == 'TPB', booktype == 'One-Shot']) and temploc is None:
|
||||
fcdigit = helpers.issuedigits('1')
|
||||
|
||||
if int(fcdigit) == int_iss:
|
||||
logger.fdebug(module + ' [' + str(reiss['IssueID']) + '] Issue match - fcdigit: ' + str(fcdigit) + ' ... int_iss: ' + str(int_iss))
|
||||
|
||||
|
|
Loading…
Reference in a new issue