View Single Post
Old 08-22-2025, 11:45 AM   #11145
LeWyKi
Junior Member
LeWyKi began at the beginning.
 
LeWyKi's Avatar
 
Posts: 2
Karma: 10
Join Date: Aug 2025
Device: Kobo Clara 2E
"list index out of range" error on fireflyfans.net

Hi, I've been trying to download a few stories from [fireflyfans.net] and for most of them the plugin is working perfectly. There's just a few stories that return an error with comment "list index out of range", e.g. this story: bluesun.aspx?bid=10996
I've looked at the Calibre debug and got this:
Code:
FFF: INFO: 2025-08-22 17:00:59,174: calibre_plugins.fanficfare_plugin.jobs(381): Exception: {'title': 'Sight', 'author_sort': ['TEMPUS'], 'author': ['TEMPUS'], 'comments': 'Chapter of Sight. The jedi come. River gets a dream of the future.', 'good': False, 'status': 'Error', 'showerror': True, 'calibre_id': None, 'begin': None, 'end': None, 'comment': 'list index out of range', 'url': 'http://www.fireflyfans.net/bluesun.aspx?bid=10996', 'site': 'www.fireflyfans.net', 'series': 'FIREFLY', 'added': False, 'pubdate': datetime.datetime(2006, 6, 12, 0, 0, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST')), 'publisher': 'www.fireflyfans.net', 'uniqueurl': 'http://www.fireflyfans.net/bluesun.aspx?bid=10996[None-None]', 'listorder': 4, 'collision': 'Update EPUB if New Chapters', 'is_adult': False, 'username': 'NoneGiven', 'password': '', 'totp': None, 'icon': 'dialog_error.png', 'all_metadata': {'category': 'FICTION', 'genre': 'General', 'characters': '', 'ships': '', 'warnings': '', 'extratags': 'FanFiction', 'author': 'TEMPUS', 'authorId': '', 'authorUrl': 'http://www.fireflyfans.net/profileshow.aspx?u=', 'lastupdate': 'Last Update Year/Month: 2006/06, Last Update: 2006/06/12', 'series': 'FIREFLY', 'seriesUrl': '', 'language': '', 'status': 'Completed', 'datePublished': '2006-06-12', 'dateUpdated': '2006-06-12', 'dateCreated': '2025-08-22 17:00:05', 'rating': '', 'numChapters': '1', 'numWords': '', 'words_added': '', 'site': 'www.fireflyfans.net', 'publisher': 'www.fireflyfans.net', 'storyId': '10996', 'title': 'Sight', 'titleHTML': "<a class='titlelink' href='http://www.fireflyfans.net/bluesun.aspx?bid=10996'>Sight</a>", 'storyUrl': 'http://www.fireflyfans.net/bluesun.aspx?bid=10996', 'sectionUrl': 'http://www.fireflyfans.net/bluesun.aspx?bid=10996', 'description': 'Chapter of Sight. The jedi come. River gets a dream of the future.', 'formatname': '', 'formatext': '', 'siteabbrev': 'fffans', 'version': 'FanFicFare v4.48.0', 'authorHTML': "<a class='authorlink' href='http://www.fireflyfans.net/profileshow.aspx?u='>TEMPUS</a>", 'seriesHTML': 'FIREFLY', 'langcode': '', 'output_css': '', 'cover_image': '', 'newforanthology': ''}, 'tags': ['FanFiction', 'General', 'FICTION', 'Completed'], 'updatedate': datetime.datetime(2006, 6, 12, 0, 0, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST')), 'timestamp': datetime.datetime(2025, 8, 22, 17, 0, 57, 897223, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST')), 'calibre_columns': {}, 'outfile': '/tmp/calibre-fdg7njxr/fanficfare_ro6qqwxs/Sight-TEMPUS-478kme67.epub'}:list index out of range
	Traceback (most recent call last):
	  File "calibre_plugins.fanficfare_plugin.jobs", line 249, in do_download_for_worker
	    writer.writeStory(outfilename=outfile,
	  File ".../calibre/plugins/FanFicFare.zip/fanficfare/writers/base_writer.py", line 237, in writeStory
	    self.writeStoryImpl(outstream)
	  File ".../calibre/plugins/FanFicFare.zip/fanficfare/writers/writer_epub.py", line 384, in writeStoryImpl
	    self.story.getList('authorId')[0],
	    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
	IndexError: list index out of range
So looks like some authors don't have an authorId if I'm reading this right. What can I do?
LeWyKi is offline   Reply With Quote