View Single Post
Old 11-16-2010, 09:16 AM   #20
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by oecherprinte View Post
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.
That will often work, but not always. If the file is being deleted when sent to the reader, there's no local file to get a date from. Another issue is that sometimes the articles in a feed have no date, so you can't compare article dates to the file date. Still another issue with dates is that the article date isn't necessarily tied to the date you parsed the feed. Articles with older dates are sometimes added to feeds.

Regardless of all that, I eventually decided I didn't like stripping articles, particularly since it had to be done at the individual recipe level. You'd either have two of every recipe, or some recipes would have this and some wouldn't. A feature like this should probably be implemented at a higher level. I was interested in how it could be done, but when I looked at it closely, it wasn't a feature I actually wanted.
Starson17 is offline   Reply With Quote