View Single Post
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: 7,043
Karma: 4604637
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 offline   Reply With Quote