mirror of
https://github.com/evilhero/mylar
synced 2025-01-02 21:14:41 +00:00
FIX:(#2195) When adding a TPB/GN series that is missing a html id within the description field would error when attempting to parse the description properly
This commit is contained in:
parent
63dc7bf0ba
commit
d4e930d4a6
1 changed files with 11 additions and 4 deletions
15
mylar/cv.py
15
mylar/cv.py
|
@ -380,12 +380,16 @@ def GetComicInfo(comicid, dom, safechk=None):
|
|||
micdrop.append(mic_check['data-ref-id'])
|
||||
|
||||
for fc in desclinks:
|
||||
#logger.info('fc: %s' % fc)
|
||||
fc_id = fc['data-ref-id']
|
||||
#logger.info('fc_id: %s' % fc_id)
|
||||
try:
|
||||
fc_id = fc['data-ref-id']
|
||||
except:
|
||||
continue
|
||||
|
||||
if fc_id in micdrop:
|
||||
continue
|
||||
|
||||
fc_name = fc.findNext(text=True)
|
||||
|
||||
if fc_id.startswith('4000'):
|
||||
fc_cid = None
|
||||
fc_isid = fc_id
|
||||
|
@ -432,7 +436,10 @@ def GetComicInfo(comicid, dom, safechk=None):
|
|||
#first_collect = cis
|
||||
|
||||
logger.info('Collected issues in volume: %s' % issue_list)
|
||||
comic['Issue_List'] = issue_list
|
||||
if len(issue_list) == 0:
|
||||
comic['Issue_List'] = 'None'
|
||||
else:
|
||||
comic['Issue_List'] = issue_list
|
||||
else:
|
||||
comic['Issue_List'] = 'None'
|
||||
|
||||
|
|
Loading…
Reference in a new issue