View Single Post
Old 01-30-2017, 08:16 PM   #1790
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,035
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Atherton25 View Post
http://royalroadl.com/fiction/10015
... gives me an error. "got more than 100 headers" it's erroring out on
http://royalroadl.com/fiction/chapter/113946 ... its probably some shitty html that's causing it, and it's going and trying to grab comments. Anyway to fix this?
royalroadl.com seems to give apparently random numbers of SAMEORIGIN in a X-Frame-Options: header. And if it gives too many, Python's HTTP header parsing breaks. I think.

In theory, you could change the FFF code to adjust the value of httplib._MAXHEADERS. But in practice, I don't want to do that in the plugin release code because it would change it for all of the running calibre process.

If you put this in personal.ini, FFF will continue on without that particular chapter. That's the best answer I have for you right now.
Code:
[royalroadl.com]
continue_on_chapter_error:true
JimmXinu is offline   Reply With Quote