Fix for PI - eFiction Base adapter Anthology Series string

This commit is contained in:
Jim Miller 2015-04-04 09:51:59 -05:00
parent 6f7453c50a
commit 9b42bec08a

View file

@ -2067,7 +2067,10 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
# copy list top level
for b in book_list:
if b['series']:
serieslist.append(b['series'][:b['series'].index(" [")])
try:
serieslist.append(b['series'][:b['series'].index(" [")])
except ValueError: # substring not found
serieslist.append(b['series'])
#print("book series:%s"%serieslist[-1])
if b['publisher']: