New test version posted (direct link)
2017-01-10
- Generalize continue_on_chapter_error so all adapters can use it.
- Adding chapter_title_error_mark for continue_on_chapter_error, force errors to always retry on update.
- Update translations.
- Bump test version.
Due to the recent issue with royalroadl.com and wuxia needing it, I've generalized
continue_on_chapter_error to work with any site or story. wuxiaworld.com is the only site it is on by default. I suggest only turning it on for specific stories if possible.
When
continue_on_chapter_error:true, if a chapter fails to download for any reason, FFF will instead insert a boilerplate text for the chapter giving the chapter URL and the error. (No, this boilerplate is not configurable at this time.)
FFF will also append a mark to the chapter title so you can easily see failed chapters in TOC. You can change what it says (including making it empty), but it currently always is appended at the end. Default:
chapter_title_error_mark: (CHAPTER ERROR)
Failed chapters are stored such that, while they will not trigger an update themselves, they will be retried whenever there is an update.
Spoiler:
Default ini:
Code:
## Because some adapters can pull chapter URLs from human posts, the
## odds of errors in the chapter URLs can be higher for some
## sites/stories. You can set continue_on_chapter_error:true to
## continue on after failing to download a chapter and instead record
## an error message in the ebook for that chapter.
continue_on_chapter_error:false
## Append this to chapter titles that errored. Only used with
## continue_on_chapter_error:true
## Set empty to not mark failed chapters.
chapter_title_error_mark:(CHAPTER ERROR)
Example boilerplate:
Quote:
Error
FanFicFare failed to download this chapter. Because continue_on_chapter_error is set to true, the download continued.
Chapter URL:
https://baddomain.com/posts/18285533/
Error:
Code:
Traceback (most recent call last):
File "calibre_plugins.fanficfare_plugin.fanficfare.adapters.base_adapter", line 394, in getStory
File "calibre_plugins.fanficfare_plugin.fanficfare.adapters.base_adapter", line 542, in getChapterTextNum
File "calibre_plugins.fanficfare_plugin.fanficfare.adapters.adapter_test1", line 364, in getChapterText
File "calibre_plugins.fanficfare_plugin.fanficfare.adapters.base_adapter", line 346, in _fetchUrlOpened
URLError: <urlopen error [Errno 11001] getaddrinfo failed>
|