Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-25-2013, 08:06 PM   #1666
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,099
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by JimmXinu View Post
Considering last_modified isn't normally visible in the GUI (at least I couldn't find it except for from CLI), does it really matter? And one could argue that it is accurate.

.
The column name is Modified. The lookup name is last_modified
theducks is online now   Reply With Quote
Old 08-25-2013, 08:22 PM   #1667
FaceDeer
Connoisseur
FaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enough
 
Posts: 75
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
I've been exploring the failure of my laptop to successfully download fanfics (while my desktop is succeeding just fine). The laptop's Windows 7, the desktop is Windows 8.

I fired up my laptop's calibre in debug mode and took a shot at downloading a fanfic. It hung, and the end of the log read:

Quote:
Successfully downloaded:
Bezithan http://www.fimfiction.net/story/124989/

Unsuccessful:

add/update Bezithan http://www.fimfiction.net/story/124989/
Everything before that looked normal. The log just stopped when Calibre hung.

After I killed Calibre and went back to the library I'd tried downloading it into, I found that there was indeed an entry for that story complete with all its metadata, but that it didn't have any actual story associated with it - it was an empty book record with no formats. I went and dug up the epub FFDL created out of the temp directory, and it looked fine. So it would seem that FFDL successfully created the epub, successfully created the book record in Calibre, but then failed to bring the epub over and insert it. My first instinct when seeing something like that on Windows is to try running the program as administrator to see if that helps, but unfortunately it didn't in this case. Didn't really expect it.

I tried installing the 32 bit version of Calibre alongside the 64 bit one and it had the same symptoms. I'm a little reluctant to wipe Calibre out and reinstall entirely from scratch, since everything else is working okay and that would mean a lot of reinstallation and restoration work afterward. Any suggestions on how else I can investigate before I go to more drastic steps like that?
FaceDeer is offline   Reply With Quote
Old 08-26-2013, 01:59 AM   #1668
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.
 
Posts: 1,780
Karma: 510215
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by FaceDeer View Post
Heh. I actually do make use of the last_modified date, myself.
...
It never occurred to me that updating a fanfic would result in last_modified being changed on other documents that hadn't been flagged for updating.
So you can testify that it didn't work that way in calibre 0.9? That it is a change that's happened in calibre 1.0?
Quote:
Originally Posted by FaceDeer View Post
If you want to be more rigorous anyway, perhaps make it so that FFDL doesn't modify other fanfics if the update wouldn't actually change the contents of the fanfic's author link field to a new value?
FFDL isn't modifying the other books. calibre's DB keeps (or did keep) the author link in a separate table from the books. I can make that update optional, or only for new authors, or only when changed.

But if the calibre behavior has changed, we should open a bug with calibre and get it changed back.

Attached is a version that doesn't ever set or change author link if you care to use it in the mean time.

UPDATE Aug 27 2013 -- Remove obsolete beta versions

Last edited by JimmXinu; 08-27-2013 at 11:47 AM. Reason: Remove obsolete beta versions
JimmXinu is online now   Reply With Quote
Old 08-26-2013, 02:30 AM   #1669
Sefiriot
Bujavid tekikin
Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.
 
Sefiriot's Avatar
 
Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
Quote:
Originally Posted by JimmXinu View Post
So you can testify that it didn't work that way in calibre 0.9? That it is a change that's happened in calibre 1.0?

FFDL isn't modifying the other books. calibre's DB keeps (or did keep) the author link in a separate table from the books. I can make that update optional, or only for new authors, or only when changed.

But if the calibre behavior has changed, we should open a bug with calibre and get it changed back.

Attached is a version that doesn't ever set or change author link if you care to use it in the mean time.
Yep, pretty sure it didn't work like that in 0.9-- I notice it because I usually use calibre's modified value to sort my library when I want to see what I just added and want to read. Can't really do that right now when every update also messes with things that haven't been.

I'm not sure if this new behaviour is intended to be a bug or a feature but seeing as Calibre Companion, which I'm certain many of us are using, can sort by Date (calibre)-- which is actually the last_modified date-- having this kind of thing happening will likely negatively impact that feature. I just want to read the latest update from author X, and would appreciate not having to remember what did update and wade through the umpteen other stories I have by X that haven't actually updated. >.>

Thanks for the new version: I'll test it out and see if all is as expected.
Sefiriot is offline   Reply With Quote
Old 08-26-2013, 05:09 AM   #1670
FaceDeer
Connoisseur
FaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enough
 
Posts: 75
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
Quote:
Originally Posted by JimmXinu View Post
So you can testify that it didn't work that way in calibre 0.9? That it is a change that's happened in calibre 1.0?
Afraid I can't testify one way or the other. I never noticed it updating the last_modified date in 0.9, but the way I was using it made it a very likely thing to overlook if it did (very few of the fanfics in my "incompletes" library are by the same author and even if last_modified did get updated on the wrong books it's not something that had very obvious effects). I only brought it up because you were asking if anyone actually used that field, and it turns out I do. A little bit.
FaceDeer is offline   Reply With Quote
Old 08-26-2013, 11:30 AM   #1671
El_Pirato
FanFic Hunter
El_Pirato began at the beginning.
 
El_Pirato's Avatar
 
Posts: 12
Karma: 10
Join Date: Aug 2013
Location: Newport News, VA
Device: Nextbook NX008HD8G
Quote:
Originally Posted by JimmXinu View Post
Exactly. The ominous legal warnings are sufficient to make us leery.
I'm looking for ways to bypass if that's possible.
I want to know how Raimond Eisele(Fanfiction Downloader.net) is able to bypass it.
El_Pirato is offline   Reply With Quote
Old 08-26-2013, 12:22 PM   #1672
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.
 
Posts: 1,780
Karma: 510215
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
I've installed an 0.9 version again and verified for certain that the last_modified behavior has changed and opened a bug report about it.

However, even if Kovid fixes it, it will still be Friday before a new version of calibre with the fix would be released.

So if you depend on last_modified being correct, you may want to use the temp version of FFDL posted above.
JimmXinu is online now   Reply With Quote
Old 08-26-2013, 12:24 PM   #1673
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.
 
Posts: 1,780
Karma: 510215
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by FaceDeer View Post
Any suggestions on how else I can investigate before I go to more drastic steps like that?
Are you using the same library on both desktop and laptop or different ones?

Does adding books not from FFDL work?

Have you tried a new, empty library? You can create one without touching your old one.

(Sorry, thought I hit post on this last night.)
JimmXinu is online now   Reply With Quote
Old 08-26-2013, 12:26 PM   #1674
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.
 
Posts: 1,780
Karma: 510215
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by theducks View Post
The column name is Modified. The lookup name is last_modified
You're right, of course. I just missed it and was having a moment of frustration.
JimmXinu is online now   Reply With Quote
Old 08-26-2013, 12:30 PM   #1675
Sefiriot
Bujavid tekikin
Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.
 
Sefiriot's Avatar
 
Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
Just gave your latest version a test run-- everything's back to previous behaviour and it looks like the last modified values aren't being touched anymore where they shouldn't be, so thanks.
Sefiriot is offline   Reply With Quote
Old 08-26-2013, 12:32 PM   #1676
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.
 
Posts: 1,780
Karma: 510215
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by Sefiriot View Post
Just gave your latest version a test run-- everything's back to previous behaviour and it looks like the last modified values aren't being touched anymore where they shouldn't be, so thanks.
That's good, but keep in mind that version is a temporary measure only. If you add a story for a new author you won't get an author link in calibre for them.
JimmXinu is online now   Reply With Quote
Old 08-26-2013, 12:41 PM   #1677
Sefiriot
Bujavid tekikin
Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.
 
Sefiriot's Avatar
 
Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
Hmm. I see from Kovid's reply at the bug tracker that the 0.9.x implementation was the buggy implementation--! Welp. Time to figure out a better way to sort things and stop relying so much on last modified then, since it seems that calibre does require regeneration of all OPFs when updating. I guess you'll recommend reverting to the current release for FFDL yes?
Sefiriot is offline   Reply With Quote
Old 08-26-2013, 12:42 PM   #1678
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.
 
Posts: 1,780
Karma: 510215
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by JimmXinu View Post
I've installed an 0.9 version again and verified for certain that the last_modified behavior has changed and opened a bug report about it.
Remember when I said it was arguably the correct thing to do? That's exactly what Kovid's just ruled.

Quote:
Changing author metadata modifies the metadata of all books associated with that author. That is the correct behavior. author metadata is stored in the opf files which means that changing it must update last_modified and thereby regeenrate the opf files for all books by that author.

The implementation in 0.9.x was the buggy one.

** Changed in: calibre
Status: New => Invalid
So I'll have to change how FFDL does author links. Hopefully I can get a new version out later today, but no promises.
JimmXinu is online now   Reply With Quote
Old 08-26-2013, 12:49 PM   #1679
Sefiriot
Bujavid tekikin
Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.Sefiriot writes the songs that make the whole world sing.
 
Sefiriot's Avatar
 
Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
No hurry, take your time. This is arguably a very minor issue after all, in the grand scheme of things.
Sefiriot is offline   Reply With Quote
Old 08-26-2013, 01:22 PM   #1680
FaceDeer
Connoisseur
FaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enough
 
Posts: 75
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
I just thought of a potential everybody-wins solution: add an "ffdl_last_modified" optional date metadata that users can configure FFDL to populate (along the lines of the FFDL error column). That way you can have it update only when FFDL actually modifies the story, in a way that you can configure however you think is optimal for fanfic downloading (for example, you might want to have it only change the date if the *text* of the story changes, ignoring any other metadata updates).

Last edited by FaceDeer; 08-26-2013 at 01:24 PM.
FaceDeer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 701 11-26-2014 06:34 AM
[GUI Plugin] Open With kiwidude Plugins 250 11-20-2014 03:45 PM
[GUI Plugin] Find Duplicates kiwidude Plugins 510 11-16-2014 12:37 AM
[GUI Plugin] Resize Cover kiwidude Plugins 34 07-13-2014 08:15 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


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


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