Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2016, 12:31 PM   #1021
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by edeniz View Post
1) "Overwrite If Newer" does not seem to be working anymore when the format in question is "html". At least not on ffnet and ao3 both. The error message is,
Code:
Not Overwriting, web site is not newer.
...
If necessary, I could attach an example fic each for ffnet and ao3 or the debug log.
Yes. Please always include story URLs when reporting any problem. Debug log, when you have it, is also always a good idea.

Quote:
Originally Posted by edeniz View Post
2) tth seems to be on the fritz yet again.
...
And to clarify: I'm using the latest plugin version, but not the test version.
This continues to be a problem that doesn't happen when I try. The test version includes additional debug info that might help if you can capture a debug log while it happens.

Frankly, from the complete lack of debug logs showing the problem posted, I had assumed it had gone away. (And if what I suspect is happening is true, there isn't anything I can do about it...)

Quote:
Originally Posted by edeniz View Post
EDIT:
I forgot to mention something else as well, so better add it here instead of making another post, right?
I don't know what the official mobileread is policy on double posts, but I can tell you that I often don't see changes to past posts if I read them before they are changed. You got lucky this time.

Quote:
Originally Posted by edeniz View Post
exclude_metadata_post is supposed to be executed after replace_metadata, right? Well. It doesn't seem to work that way for me.

http://archiveofourown.org/works/246947[1]
The Jenny Code (Ch 1-1)
Authors: Domenika Marzione (domarzione)
...
Again, no idea if it is something new or if it's been this way for a while. It's not that it's supposed to be this way and I simply misunderstood what exclude_metadata_post is supposed to do, right?
The problem is that the order of application is in/exclude_pre, then replace_metadata, then in/exclude_pre per metadata entry.

So when the replace_metadata line for characters fetches the metadata for genre to check against 'Genii', it invokes in/exclude_pre, then replace_metadata, then in/exclude_pre for genre before doing the comparison.

Changing that now would involve a huge amount of testing that I'm not interested in doing for one corner case.

You can accomplish what you want with this instead:
Code:
[archiveofourown.org]

add_to_extra_valid_entries:,rawgenre
include_in_rawgenre:genre.NOREPL

replace_metadata:
 characters=>(.*)=>\1\,Genii&&rawgenre=>Genii

exclude_metadata_post:
 genre==Genii
If it's a common problem people are running into, I'm willing to consider adding code to allow for entry.NOREPL more widely to avoid having to add rawgenre.
JimmXinu is online now   Reply With Quote
Old 02-12-2016, 01:38 PM   #1022
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by JimmXinu View Post
I don't know what the official mobileread is policy on double posts, but I can tell you that I often don't see changes to past posts if I read them before they are changed. You got lucky this time.
Most people are the same.

I am fairly positive that MobileRead policy is "make a new post if you want".
And I DO want to post a new post if more than ~10 minutes has passed and I have significant new information to add.
eschwartz is offline   Reply With Quote
Advert
Old 02-12-2016, 01:38 PM   #1023
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
Jimm,

I downloaded 3 different stories from tth today and had no problems. I had no tth problems for the last 6 months. (If this helps any.)
Firedancer885 is offline   Reply With Quote
Old 02-12-2016, 05:47 PM   #1024
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Firedancer885 View Post
I downloaded 3 different stories from tth today and had no problems. I had no tth problems for the last 6 months. (If this helps any.)
It confirms I'm not the only one seeing no problems, thanks.
JimmXinu is online now   Reply With Quote
Old 02-13-2016, 04:38 AM   #1025
edeniz
Zealot
edeniz began at the beginning.
 
Posts: 132
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Sorry for the late answer. Couldn't get to my computer before now.


Quote:
Originally Posted by JimmXinu View Post
Yes. Please always include story URLs when reporting any problem. Debug log, when you have it, is also always a good idea.
Ok, will do. Just didn't want to clutter should it turn out to be unnecessary. Attached is everything relevant.


Quote:
Originally Posted by JimmXinu View Post
This continues to be a problem that doesn't happen when I try. The test version includes additional debug info that might help if you can capture a debug log while it happens.

Frankly, from the complete lack of debug logs showing the problem posted, I had assumed it had gone away. (And if what I suspect is happening is true, there isn't anything I can do about it...)
Well, the tth thing at least turned out to be my own mistake. Apparently I had this line under the tthfanfic.org part of the personal.ini, smack dab under my username and password:


Spoiler:
Code:
 centeredcat_to_characters:true
 pairingcat_to_characters_ships:true
 romancecat_to_characters_ships:true


And as you can see, with freaking indent (no idea when that mistake happened), so it thought they were a part of the username/password process too. Since it's in the defaults I deleted them, of course, problem solved. (I'd put that there in December, when you first introduced these new changes, and forgotten to delete them now that it's turned on by default. But, did you know that those lines are marked red in the ini files as if they were an error?)


Quote:
Originally Posted by JimmXinu View Post
I don't know what the official mobileread is policy on double posts, but I can tell you that I often don't see changes to past posts if I read them before they are changed. You got lucky this time.
Oops. Thanks. I'll remember next time. I keep confusing in which forums it's okay to double post and in which it's frowned on.

Quote:
Originally Posted by JimmXinu View Post
The problem is that the order of application is in/exclude_pre, then replace_metadata, then in/exclude_pre per metadata entry.

So when the replace_metadata line for characters fetches the metadata for genre to check against 'Genii', it invokes in/exclude_pre, then replace_metadata, then in/exclude_pre for genre before doing the comparison.

Changing that now would involve a huge amount of testing that I'm not interested in doing for one corner case.

You can accomplish what you want with this instead:
Code:
[archiveofourown.org]

add_to_extra_valid_entries:,rawgenre
include_in_rawgenre:genre.NOREPL

replace_metadata:
 characters=>(.*)=>\1\,Genii&&rawgenre=>Genii

exclude_metadata_post:
 genre==Genii
If it's a common problem people are running into, I'm willing to consider adding code to allow for entry.NOREPL more widely to avoid having to add rawgenre.
Dear me, no, by all means. I didn't mean it like that. No need to change it on my behalf, especially not if it's a lot of work. I just assumed that I was probably doing something wrong, and couldn't figure out what I was missing. It's not really a problem. The solution idea you offered is more than enough. (It wouldn't even be an issue in the first place if ao3 authors didn't keep adding character or ship tags into the genre field. Half the time it's a good thing that ao3 has no limitations on the tags, the other half of the time it's a headache.)


Thank you for all your help
Attached Files
File Type: zip iron_coin_chronicles_4.zip (231.6 KB, 260 views)
File Type: zip uchibi_sasuke_by_laryna6.zip (198.2 KB, 466 views)
File Type: zip team_anko_-_hellweek-_day_4.zip (78.9 KB, 213 views)
File Type: zip ricochet_by_strix_4.zip (90.6 KB, 322 views)
File Type: txt debug-log fanficfare.txt (79.7 KB, 197 views)
File Type: txt error messages fff.txt (838 Bytes, 247 views)
edeniz is offline   Reply With Quote
Advert
Old 02-13-2016, 12:03 PM   #1026
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by edeniz View Post
Ok, will do. Just didn't want to clutter should it turn out to be unnecessary. Attached is everything relevant.
<attached files for Overwrite in HTML issue>
I don't see anything that jumps out. It's working fine for me, but I don't usually keep HTML format stories around.

When doing "Overwrite if Newer", FFF looks at the file system last-modified datetime(mtime from os.stat()) for the zip file calibre puts HTML in and compares it to the 'updated' date from the site.

However, if for any reason the modified time on the zip has been updated since, it can throw things off. I don't know of any reason why calibre would do so, but it could happen for other reasons.

I've attached a test version that includes some debug output to report the file and site times found.

(The file mtime includes time of day while for most sites 'updated' is just a date. So if updated date == mtime date and there's no updated time, "Overwrite if Newer" will assume the site is newer and overwrite. There can also be issues when the timezone on your computer and on the site differ.)

BTW, if you are receiving story update notices by email, there's no reason not to use Overwrite Always when you know there is new content.

Quote:
Originally Posted by edeniz View Post
... But, did you know that those lines are marked red in the ini files as if they were an error?
Thanks for pointing that out. I found a couple other ini/highlighting errors to fix too.

Last edited by JimmXinu; 02-03-2017 at 01:40 PM. Reason: Remove obsolete test versions
JimmXinu is online now   Reply With Quote
Old 02-13-2016, 12:53 PM   #1027
edeniz
Zealot
edeniz began at the beginning.
 
Posts: 132
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Hmm. Strange, that. Even stranger that of the two ao3 fics I provided, one posed no problem, whereas the other did.

But, since you mentioned calibre's modified date throwing things off: would moving the file from one calibre library to another count then? Because that I did. (Also true that timezones differ, I think. Mine is gmt+1, not sure what the timezones of ao3 and ffnet are, probably some American timezone.)

In fact, because you mentioned it, I've tested it out: I moved a few files that have new chapters that I didn't download yet into a new library, and when I tried to update, even the epub file would not allow it unless I overwrote. So yeah, that might just be it as far as problem source goes. But, I'll install and use the test version anyway, and get back to you with its debug file.

But you're right, I do get email update notices, so might as well use overwrite always, no reason not to. As long as I can update and download at all, I'm happy.

edeniz is offline   Reply With Quote
Old 02-13-2016, 01:06 PM   #1028
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by edeniz View Post
But, since you mentioned calibre's modified date throwing things off: would moving the file from one calibre library to another count then? Because that I did.
Absolutely. Calibre doesn't do move--it does copy and delete which would definitely reset the mod time.

Quote:
Originally Posted by edeniz View Post
In fact, because you mentioned it, I've tested it out: I moved a few files that have new chapters that I didn't download yet into a new library, and when I tried to update, even the epub file would not allow it unless I overwrote.
For epubs I recommend 'Update if New Chapters'. In fact, I generally recommend downloading/updating epubs and then converting to other formats. That's what I do for my Kindle.
JimmXinu is online now   Reply With Quote
Old 02-14-2016, 02:21 AM   #1029
edeniz
Zealot
edeniz began at the beginning.
 
Posts: 132
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Quote:
Originally Posted by JimmXinu View Post
Absolutely. Calibre doesn't do move--it does copy and delete which would definitely reset the mod time.
Well, turns out that was it after all. I made a debug log with the test version you attached (see attachment), and according to it, the move to a different library made all the difference. I'll know better in future.

Quote:
Originally Posted by JimmXinu View Post
For epubs I recommend 'Update if New Chapters'. In fact, I generally recommend downloading/updating epubs and then converting to other formats. That's what I do for my Kindle.
Of course. Makes no sense to overwrite an epub when it can simply add new chapters. It takes much less time that way. I meant rather, if I make a boneheaded move and forget not to copy/move files before updating them. Because in that case, overwriting it is the only way, after all. As I said, now I know better, so hopefully it won't be an issue again.

Again, for all your help.
Attached Files
File Type: txt tmpQs6WKA.txt (8.0 KB, 294 views)
edeniz is offline   Reply With Quote
Old 02-14-2016, 07:53 AM   #1030
DavidBrookes
Member
DavidBrookes began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Apr 2013
Device: None
Not sure if anyone is having the same issue but I have had problems over the last two months with downloading stories from Sink Into Your Eyes. I have been able to sometimes download new stories but updating current ones has been unsuccessful. I have attached the log files from my last attempt to this post. Please help.
Attached Files
File Type: txt SIYE - Error Logs.txt (455.5 KB, 205 views)

Last edited by DavidBrookes; 02-14-2016 at 08:04 AM.
DavidBrookes is offline   Reply With Quote
Old 02-14-2016, 11:05 AM   #1031
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by DavidBrookes View Post
Not sure if anyone is having the same issue but I have had problems over the last two months with downloading stories from Sink Into Your Eyes. I have been able to sometimes download new stories but updating current ones has been unsuccessful. I have attached the log files from my last attempt to this post. Please help.
First off, you're trying to update 692 stories at once. That's waaaaaaaaay more than I recommend or condone.

That said, I've spot checked a few of the stories you had errors with:

Those with error 'NoneType' object has no attribute '__getitem__' are stories that no longer exist on the site. (Example). I will update the adapter to report those as StoryDoesNotExist.

Of those that gave you error HTTP Error 400: Bad Request and urlopen error, the 6 that I spot checked all worked fine. I believe you either were blocked by the site for excessive traffic or caused the site server to fail.

In short, don't try to update them all at once.

If you really think you must, try adding this to your personal.ini first so you don't kill the server:

Code:
[www.siye.co.uk]
slow_down_sleep_time:4
JimmXinu is online now   Reply With Quote
Old 02-15-2016, 04:22 PM   #1032
susanpr
Member
susanpr began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2011
Device: generic android 4.0
I am attempting to update a few stories on AO3, and since this morning I am getting this statement in the update function in the Fanficfare plugin for Calibre.


Status
Title
Author
Comment
URL
Bad
The Kiss You Deserve
JackofSomeTrades
<urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
http://archiveofourown.org/works/5350130

When I try to use the fanficfare app on the web, it will grab the story. I have tried reinstalling the plugin, but no change. Can you help me get my plugin working again?

Last edited by susanpr; 02-15-2016 at 04:31 PM.
susanpr is offline   Reply With Quote
Old 02-15-2016, 05:58 PM   #1033
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by susanpr View Post
I am attempting to update a few stories on AO3, and since this morning I am getting this statement in the update function in the Fanficfare plugin for Calibre.

<urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
http://archiveofourown.org/works/5350130

When I try to use the fanficfare app on the web, it will grab the story. I have tried reinstalling the plugin, but no change. Can you help me get my plugin working again?
I was able to download that story too. The site may have been having problems at the time.

Alternatively, how many updates have you tried to do recently? Because that refused connection sounds like your IP is being blocked by the site and excessive traffic is the only reason I know of they'd do that.
JimmXinu is online now   Reply With Quote
Old 02-15-2016, 06:33 PM   #1034
susanpr
Member
susanpr began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2011
Device: generic android 4.0
Quote:
Originally Posted by JimmXinu View Post
I was able to download that story too. The site may have been having problems at the time.

Alternatively, how many updates have you tried to do recently? Because that refused connection sounds like your IP is being blocked by the site and excessive traffic is the only reason I know of they'd do that.
I haven't updated more than I normally do, maybe 10 or 15 stories, and no more than 5 at a time. I'm still getting the message. Maybe I'll try tomorrow
susanpr is offline   Reply With Quote
Old 02-16-2016, 08:53 PM   #1035
Chrystalline
Enthusiast
Chrystalline began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Aug 2015
Device: pc
I have a couple of might-be-silly questions:

Is it possible to export the reject URL list to transfer to another computer? I see where URLs can be added, but I don't see an easy way to export the rejected ones. I'm thinking about moving my entire Calibre database, and I know that someday down the road I'll junk this machine for a newer one, so being able to preserve the reject filter seems like a good idea to me. (and now I'm wondering if there's a way to use the list outside of FFF/Calibre to do the filtering in advance, to speed things up - not that I know how to go about that...)

Is it possible to set an option to "always do this" or "do this for any other conflicts in this session" with the "Change URL?" and "Download as New Story?" dialogs? I like to set FFF to downloading in the background while I'm doing something else, and I don't always notice that it's waiting for input, which makes me feel really stupid when I come back to it expecting it to have finished downloading, and it's still stuck on whether to change the URL. There is much facepalming on those days

Please forgive me if this is a simple thing I've missed; there's so much magic in this plugin, I don't know if I'll ever fully master it.
Chrystalline is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 09:52 AM.


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