From 20da1fbc5848ad74c74a6903a68f1e23401a3017 Mon Sep 17 00:00:00 2001 From: yodha8 <104330897+yodha8@users.noreply.github.com> Date: Mon, 2 May 2022 07:32:47 -0700 Subject: [PATCH] Update OMG! Ubuntu! recipe --- recipes/omgubuntu.recipe | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/recipes/omgubuntu.recipe b/recipes/omgubuntu.recipe index 66f6fb0520..bd2b123272 100644 --- a/recipes/omgubuntu.recipe +++ b/recipes/omgubuntu.recipe @@ -1,23 +1,14 @@ -# -*- coding: utf-8 -*- +#!/usr/bin/env python +# vim:fileencoding=utf-8 from calibre.web.feeds.news import BasicNewsRecipe - -class BasicUserRecipe1318619832(BasicNewsRecipe): - title = u'OmgUbuntu' +class OMGUbuntu(BasicNewsRecipe): + title = u"Omg! Ubuntu!" + description = u"Online news site covering Ubuntu activities. Recipe pulls articles from past 7 days." language = 'en' 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(self) - try: - br.open(masthead) - except: - self.log("\nCover unavailable") - masthead = None - return masthead + feeds = [(u'Omg Ubuntu', u'https://www.omgubuntu.co.uk/feed')]