From 4ca1db0c81c977a1fea4a2cef35714abf5cd933e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Chabot?= Date: Sun, 16 Oct 2011 11:28:07 +0200 Subject: [PATCH] Add omgubuntu news website recipe --- recipes/omgubuntu.recipe | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 recipes/omgubuntu.recipe 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