Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 07-09-2012, 02:53 PM   #541
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: 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.
JimmXinu is offline  
Old 07-10-2012, 06:59 AM   #542
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,451
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by JimmXinu View Post
If that's the official solution, I can certainly live with it.

But it would have been a lot easier to find if the behavior were consistent, either one way or the other.

A simple custom column and a composite column with a simple template ("{#characters}, {#genre}"): both work without the refresh.

But a composite column with a template function ("{#genre:uppercase()}") doesn't work without the refresh.
I found an easy & efficient way to make composite columns refresh when "normal" columns are changed, satisfying your consistency goal. The change is in trunk source and will be released this week.

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.
chaley is offline  
Old 07-10-2012, 08:19 AM   #543
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: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@chaley - Great, thanks!
JimmXinu is offline  
Old 07-10-2012, 08:45 AM   #544
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
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
Firedancer885 is offline  
Old 07-10-2012, 09:39 AM   #545
Zauberlehrling!
Member
Zauberlehrling! began at the beginning.
 
Zauberlehrling!'s Avatar
 
Posts: 20
Karma: 10
Join Date: Nov 2011
Location: Scotland
Device: Amazon Kindle 3 Keyboard
Quote:
Originally Posted by JimmXinu View Post
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.
I did and it worked. The error in my second screenshot happened after I included that updated version.

And here I came across something new (sorry if I am going on your nerves ). I tried to update my downloaded stories and one story came up with a "'NoneType'object has no attribute 'string'". See screenshot.
Attached Thumbnails
Click image for larger version

Name:	update_error.jpg
Views:	263
Size:	102.0 KB
ID:	88960  
Zauberlehrling! is offline  
Old 07-10-2012, 10:16 AM   #546
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Quote:
Originally Posted by Zauberlehrling! View Post
I did and it worked. The error in my second screenshot happened after I included that updated version.

And here I came across something new (sorry if I am going on your nerves ). I tried to update my downloaded stories and one story came up with a "'NoneType'object has no attribute 'string'". See screenshot.
That story is already complete. If you make a custom column titled something like complete or fertig or something similar and then use the "custom column" tab of the FFDL settings, you can make Calibre display if a story is completed or not. This way you only need to update the stories tagged "in-progress".
Firedancer885 is offline  
Old 07-10-2012, 10:40 AM   #547
Zauberlehrling!
Member
Zauberlehrling! began at the beginning.
 
Zauberlehrling!'s Avatar
 
Posts: 20
Karma: 10
Join Date: Nov 2011
Location: Scotland
Device: Amazon Kindle 3 Keyboard
Quote:
Originally Posted by Firedancer885 View Post
That story is already complete. If you make a custom column titled something like complete or fertig or something similar and then use the "custom column" tab of the FFDL settings, you can make Calibre display if a story is completed or not. This way you only need to update the stories tagged "in-progress".
That is exactly what I want, update stories "in-progress".
I will do this from home. Thanks for the idea.
Zauberlehrling! is offline  
Old 07-10-2012, 04:21 PM   #548
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
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.
Firedancer885 is offline  
Old 07-10-2012, 05:24 PM   #549
calvertvl
Junior Member
calvertvl began at the beginning.
 
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:
'NoneType' object has no attribute '__getitem__'
It happens for any story that's missing, on the metadata fetch (for which the FFnet page says "Unable to locate story"). Here's a sample URL:
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.
calvertvl is offline  
Old 07-10-2012, 10:12 PM   #550
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: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by calvertvl View Post
It happens for any story that's missing, on the metadata fetch (for which the FFnet page says "Unable to locate story"). Here's a sample URL:
http://www.fanfiction.net/s/5901296/1/

I don't remember what the message was before, but I think it was something more obvious.
It was. They changed the text on the Story Not Found page. Fix in next version.
JimmXinu is offline  
Old 07-10-2012, 10:16 PM   #551
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: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Firedancer885 View Post
And it won't work on fanfiktion.de, because of the german tags.
I didn't know that. Hmm.

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.
JimmXinu is offline  
Old 07-10-2012, 10:20 PM   #552
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: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Zauberlehrling! View Post
And here I came across something new (sorry if I am going on your nerves ). I tried to update my downloaded stories and one story came up with a "'NoneType'object has no attribute 'string'". See screenshot.
Please include story URLs in problem reports.
JimmXinu is offline  
Old 07-10-2012, 10:23 PM   #553
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: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Firedancer885 View Post
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.
Almost certainly has something to do with weird (or flat out wrong) HTML from the original author. It's going to be a couple days before I have time to look at it in depth.
JimmXinu is offline  
Old 07-10-2012, 10:30 PM   #554
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
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!
ilovejedd is offline  
Old 07-11-2012, 03:36 AM   #555
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Quote:
Originally Posted by JimmXinu View Post
Almost certainly has something to do with weird (or flat out wrong) HTML from the original author. It's going to be a couple days before I have time to look at it in depth.
Thanks.
Firedancer885 is offline  
Closed Thread


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:27 AM.


MobileRead.com is a privately owned, operated and funded community.