mirror of
https://github.com/evilhero/mylar
synced 2024-12-25 01:01:47 +00:00
FIX:(#207) Error on Adding Series. If Series dates contained seasons instead of month names, would error.
This commit is contained in:
parent
cf4e605876
commit
621c3cad2a
1 changed files with 8 additions and 0 deletions
|
@ -434,6 +434,14 @@ def GettheDate(parsed,PrevYRMO):
|
|||
ParseDate = str(ParseYear) + "-" + str(pconv)
|
||||
logger.fdebug("!success - Publication date: " + str(ParseDate))
|
||||
break
|
||||
# some comics are messed with pub.dates and have Spring/Summer/Fall/Winter
|
||||
baseseasons = {'spring':'03','summer':'06','fall':'09','winter':'12'}
|
||||
for seas in baseseasons:
|
||||
if seas in ParseDate.lower():
|
||||
sconv = baseseasons[seas]
|
||||
ParseYear = re.sub('/s','',ParseDate[-5:])
|
||||
ParseDate = str(ParseYear) + "-" + str(sconv)
|
||||
break
|
||||
else:
|
||||
# #try key date
|
||||
# subtxt1 = parsed('td')[2]
|
||||
|
|
Loading…
Reference in a new issue