View Single Post
Old 09-29-2010, 04:56 PM   #5
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Quote:
Originally Posted by kovidgoyal View Post
You want

Code:
def get_article_url(self, article): 
        link = article.get('link')
        if 'audio' not in link:
             return link
Kovid,
Thanks for showing that method. I have been doing the preprocess one for a while like with the popscience.recipe but your method is cleaner and faster. Thanks again. I will be updating the popscience for submission in a future build so it implements this. That is one thing I love about this forum and calibre. I learn something new every single day by folks helping others.
TonytheBookworm is offline   Reply With Quote