![]() |
#541 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Bad HTML in the story summary can break HTML parsing.
Luckily, I've seen the same problem before on another site and already had a handy fix. I've updated the test version on the earlier post. Give it a try. |
![]() |
![]() |
#542 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,451
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
You should no longer need to do the refresh_ids before calling get_metadata. It doesn't hurt anything if you continue to call it. |
|
![]() |
![]() |
#543 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
@chaley - Great, thanks!
|
![]() |
![]() |
#544 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
http://www.wraithbait.com/viewstory.php?sid=14182
Jimm, please check this story. FFDL only downloads the first 4 pages. It get's cut off right after the second "chapter indicator", the bold line "handbook". I think there is something wrong with the text formatting of that section. There is a blockquote tag right where FFDL cuts off the story. Last edited by Firedancer885; 07-10-2012 at 09:03 AM. Reason: tag |
![]() |
![]() |
#545 | |
Member
![]() Posts: 20
Karma: 10
Join Date: Nov 2011
Location: Scotland
Device: Amazon Kindle 3 Keyboard
|
Quote:
And here I came across something new (sorry if I am going on your nerves ![]() |
|
![]() |
![]() |
#546 | |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
Quote:
|
|
![]() |
![]() |
#547 | |
Member
![]() Posts: 20
Karma: 10
Join Date: Nov 2011
Location: Scotland
Device: Amazon Kindle 3 Keyboard
|
Quote:
![]() I will do this from home. Thanks for the idea. |
|
![]() |
![]() |
#548 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
@ Zauberlehrling
You will have to do an "update metadata only" on all of your downloaded stories after you set up the column. Unfortunately, it's not automatic for stories already in your library. And it won't work on fanfiktion.de, because of the german tags. |
![]() |
![]() |
#549 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2012
Device: Nook SimpleTouch
|
@JimmXinu
That update you released after I had reported the FFnet date issue did resolve the problem. Thank you for the quick resolution on that one. I did find another issue with FFnet today when running some updates. I'm running 1.5.43 and when trying to update an in-progress story that had been deleted, the error message is the following unfriendly statement: Quote:
http://www.fanfiction.net/s/5901296/1/ I don't remember what the message was before, but I think it was something more obvious. This was on a fresh restart of calibre after making sure the latest version was installed. ETA: Previous message was "Story does not exist:http://www.fanfiction.net/s/5901296/1/" (with the appropriate URL for the story in question; I used the URL for the above example). Calibre debug is below: FanFictionDownLoader v1.5.43 url:http://www.fanfiction.net/s/5901296/1/ =Trying newer chapter: http://www.fanfiction.net/s/5901296/2/ =======Found newer chapter: http://www.fanfiction.net/s/5901296/2/ Exception: {u'comment': u"'NoneType' object has no attribute '__getitem__'", u'begin': None, u'good': False, u'end': None, u'author': u'sheltie', u'url': u'http://www.fanfiction.net/s/5901296/1/', u'author_sort': u'sheltie', u'calibre_id': 499, u'added': False, u'title': u'Two Girls with Harry in the Middle'}:'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "calibre_plugins.fanfictiondownloader_plugin.dialo gs", line 308, in do_loop File "calibre_plugins.fanfictiondownloader_plugin.ffdl_ plugin", line 462, in get_metadata_for_book File "calibre_plugins.fanfictiondownloader_plugin.fanfi cdownloader.adapters.base_adapter", line 237, in getStoryMetadataOnly File "calibre_plugins.fanfictiondownloader_plugin.fanfi cdownloader.adapters.adapter_fanfictionnet", line 122, in extractChapterUrlsAndMetadata TypeError: 'NoneType' object has no attribute '__getitem__' Fetched metadata for 1 of 1 Last edited by calvertvl; 07-10-2012 at 09:01 PM. |
|
![]() |
![]() |
#550 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
|
|
![]() |
![]() |
#551 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
![]() Since we don't have German for the different metadata labels for fanfiktion.de, I think the fanfiktion.de adapter should be using 'Completed' and 'In Progress' for status, not 'Fertiggestellt' and 'In Arbeit'. Plus the precedent was already set in www.ficbook.net. Changed in next version unless somebody talks me out of it. ![]() |
|
![]() |
![]() |
#552 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
#553 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
|
|
![]() |
![]() |
#554 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Question, is there a debug option available for FFDL to save the original source HTML files in a user-defined directory (e.g. "/debug/SiteAbbrev/StoryID") as well as intermediate files? If not, would it be possible to add this option?
e.g. /debug/SiteAbbrev/StoryID/input: downloaded source html (1 file per index/chapter) /debug/SiteAbbrev/StoryID/parsed: parsed metadata in either txt, csv or xml format and clean html version of the story /debug/SiteAbbrev/StoryID/output: final output Thanks! |
![]() |
![]() |
#555 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
|
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1846 | 08-02-2025 10:44 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 |