diff --git a/recipes/omgubuntu.recipe b/recipes/omgubuntu.recipe new file mode 100644 index 0000000000..c5bf1fecef --- /dev/null +++ b/recipes/omgubuntu.recipe @@ -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