Add omgubuntu news website recipe

This commit is contained in:
Aurélien Chabot 2011-10-16 11:28:07 +02:00
parent 7bee77bbaa
commit 4ca1db0c81

17
recipes/omgubuntu.recipe Normal file
View File

@ -0,0 +1,17 @@
class BasicUserRecipe1318619832(AutomaticNewsRecipe):
title = u'OmgUbuntu'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
feeds = [(u'Omg Ubuntu', u'http://feeds.feedburner.com/d0od')]
def get_masthead_url(self):
masthead = 'http://cdn.omgubuntu.co.uk/wp-content/themes/omgubuntu/images/logo.png'
br = BasicNewsRecipe.get_browser()
try:
br.open(masthead)
except:
self.log("\nCover unavailable")
masthead = None
return masthead