View Single Post
Old 11-16-2010, 04:18 AM   #19
oecherprinte
Zealot
oecherprinte began at the beginning.
 
Posts: 115
Karma: 20
Join Date: Jul 2010
Device: Kindle3 3G, Kindle Paperwhite 2
Quote:
Originally Posted by Starson17 View Post
Yes, but to do that you need to know the date of the last run, and that requires storing that date somewhere during the previous run and fetching it during the current run to do the comparison. That's exactly what my comment was about - passing data from one recipe run to the next one.
My idea was to look for the latest file that was generated for the feed from calibre. Then you could look up the date at which this file was generated which you can retrieve from the filesystem. I have not really looked at it, but this way you could avoid storing data in a separate history file for the feed. I am sure there is some python command to retrieve the date of a file.


Of course, the duplicate article problem cannot be solved that way.

Last edited by oecherprinte; 11-16-2010 at 04:22 AM.
oecherprinte is offline   Reply With Quote