![]() |
#2386 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2014
Device: Laptop at the moment
|
Hi,
I just came by to let you know, that fanfiction.net appears to have broken down again. I get a Code:
'NoneType' object has no attribute '__getitem__' Thank you for your continued work, Emmi |
![]() |
![]() |
#2387 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
#2388 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2014
Device: Laptop at the moment
|
It happens with all stories I've tried so far.
As for the debuglog: Code:
calibre Debug log calibre 1.21 [64bit] isfrozen: True is64bit: True Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.5 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Starting up... FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin(155):Plugin FanFictionDownLoader macmenuhack file_path:C:\Users\Emmi\AppData\Roaming\calibre\plugins\fanfictiondownloader_macmenuhack.txt Started up in 22.34 seconds with 764 books FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin(722):FanFictionDownLoader v1.8.9 FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin(757):url:https://www.fanfiction.net/s/8968909/1/ FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.adapter_fanfictionnet(88):URL: http://www.fanfiction.net/s/8968909/1/ FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.adapter_fanfictionnet(121):=Trying newer chapter: https://www.fanfiction.net/s/8968909/2/ FFDL:WARNING:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter(182):Caught an exception reading URL: https://www.fanfiction.net/s/8968909/2/ Exception <urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol>. FFDL:WARNING:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter(182):Caught an exception reading URL: https://www.fanfiction.net/s/8968909/2/ Exception <urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol>. FFDL:WARNING:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter(182):Caught an exception reading URL: https://www.fanfiction.net/s/8968909/2/ Exception <urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol>. FFDL:WARNING:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter(182):Caught an exception reading URL: https://www.fanfiction.net/s/8968909/2/ Exception <urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol>. FFDL:ERROR:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter(184):Giving up on https://www.fanfiction.net/s/8968909/2/ FFDL:ERROR:__init__.py(1182):<urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol> Traceback (most recent call last): File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter", line 179, in _fetchUrl File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter", line 168, in _fetchUrlRaw File "urllib2.py", line 404, in open File "urllib2.py", line 422, in _open File "urllib2.py", line 382, in _call_chain File "urllib2.py", line 1222, in https_open File "urllib2.py", line 1184, in do_open URLError: <urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol> FFDL:ERROR:calibre_plugins.fanfictiondownloader_plugin.dialogs(600):Exception: {u'comment': u"'NoneType' object has no attribute '__getitem__'", u'publisher': u'www.fanfiction.net', u'begin': None, u'good': False, u'end': None, u'author': [u'rightforlife'], u'url': u'https://www.fanfiction.net/s/8968909/1/', u'listorder': 0, u'author_sort': u'rightforlife', u'comments': u'', u'calibre_id': 872, u'added': False, u'title': u'A Wrinkle in Time'}:'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "calibre_plugins.fanfictiondownloader_plugin.dialogs", line 590, in do_loop File "calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin", line 823, in prep_download_loop File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter", line 243, in getStoryMetadataOnly File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.adapter_fanfictionnet", line 132, in extractChapterUrlsAndMetadata TypeError: 'NoneType' object has no attribute '__getitem__' |
![]() |
![]() |
#2389 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Were you downloading/updating a large (more than 12) number of stories? Because we have seen ffnet throttling requests from users who make too many hits to their servers. (The value of 'too many' is not known.) But I thought they were doing it more gracefully. Any other causes I try to speculate would only be guesses. In your place, I'd try making sure I could read the stories from a browser, rebooting, and trying from a different network. |
|
![]() |
![]() |
#2390 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Dec 2013
Device: iPad
|
cant download a story off storiesonine.net
ok i've tried to download this story http://storiesonline.net/s/69347 and i get this message
Status Title Author Comment URL Error The Earl's Man FantasyLover list index out of range http://storiesonline.net/s/69347 i've had no problem downloading anything else really but this one story. can someone explain why it wont work. heres the debug log as well to help you to tell me if its my problem or just a bug of some sort |
![]() |
![]() |
#2391 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
I'm not sure how to fix this. I'll have a think and see if I can come up with a solution. Of course, reporting it to the author or the site admin might get the page fixed so that the problem goes away ![]() And for the problem reported earlier in the week, I have fix. But, I haven't had a chance to test it enough. Hopefully tonight. |
|
![]() |
![]() |
#2392 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Dec 2013
Device: iPad
|
well damn i didnt think i would get a reply back so soon. and you figured it out quick as well. thanks for the explanation as well. i see what you mean on chapter 12 with the margins and such. i'll drop a email to the site manager to see if they will fix it not sure if they would see the need or not but doesn't hurt to try though. but thank you for the help.
|
![]() |
![]() |
#2393 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
- Headings within the story where being stripped - For multi-page stories, the second page and further were in a div inside the main story div. This worked but it looked wrong. - Spans used for styles in the story were stripped along with the text they containted. - Any br tags inside the story were also stripped. This mainly meant some structure was being lost. The spans were probably the worst bit as if they were used, they tended to be used a lot. I haven't made any attempt to fix the problem reported on the weekend where there was a "</div>" in the wrong place. The finestories.com plugin probably should have the same changes, but it will be a few days before I can look at it. |
|
![]() |
![]() |
#2394 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Here's a test version with davidfor's changes included.
UPDATE Feb 7, 2014 - Remove obsolete beta versions Last edited by JimmXinu; 02-07-2014 at 10:34 PM. Reason: Remove obsolete beta versions |
![]() |
![]() |
#2395 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2014
Device: Kindle
|
Suggestion
Hi,
Would it be possible to have a button made for your browser that would grab the current page address and start the download of fanfiction in Calibre without you having to go and copy and paste the address and add the download separately? The button could be saved onto your Favourites bar in Firefox for example. You could maybe also have all your options set and pre-saved so you won't have to go into Calibre to say 'yes' to add to library, etc. Thanks & kind regards, Nic |
![]() |
![]() |
#2396 |
Member
![]() Posts: 22
Karma: 10
Join Date: May 2012
Device: Sony PRS-T1
|
Thanks again to both you and davidfor. Based on a very brief test, this seems to solve the problems I had. The only minor nitpick I have is that there are no colors on the epub, but I don't even know if it's possible to include them. Besides, I mostly read on a black & white reader so that's really not a big issue.
|
![]() |
![]() |
#2397 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Dec 2013
Device: iPad
|
well damn man. you fixed that one problem with the story margins and now it downloaded the story i wanted so thank you very much. great work!
|
![]() |
![]() |
#2398 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Calibre uses the GUI thread as the lock on the database. So there's no way (that I know of) to properly invoke a plugin in the GUI, from outside the GUI. You could make a bookmarklet that used the FFDL web service version and save it to calibre's auto-add directory. Or use a browser add-on to call the FFDL CLI (or plugin CLI) to download and save it to calibre's auto-add directory. But that wouldn't help with updates and couldn't call the other plugins that FFDL integrates with. |
|
![]() |
![]() |
#2399 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
#2400 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
I haven't looked a how to handle this error yet. |
|
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1849 | 08-30-2025 01:22 PM |
[GUI Plugin] Resize Cover | kiwidude | Plugins | 100 | 07-10-2025 08:50 AM |
[GUI Plugin] Find Duplicates | kiwidude | Plugins | 1124 | 04-18-2025 09:19 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |