View Single Post
Old 01-17-2012, 08:11 AM   #1
djg
Junior Member
djg began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2012
Device: Kindle 4, Powerbook 902
How to not create a document/mobi, if there are no unread RSS items

I'm new to writing recipes (and fairly new to Python as well).

I'm following a blog that publishes articles off and on, but if it does publish an article I want to read it the next day, so I've scheduled the recipe to fetch the feed on a daily basis.

I've seen that code snippet: https://www.mobileread.com/forums/sho...5&postcount=10 - in case there are no unread items, it creates an empty mobi though. How can I not create a document at all?
djg is offline   Reply With Quote