Update OMG! Ubuntu! recipe

This commit is contained in:
yodha8 2022-05-02 07:32:47 -07:00 committed by GitHub
parent 1203d95022
commit 20da1fbc58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')]