This commit is contained in:
Kovid Goyal 2022-05-02 20:26:31 +05:30
commit a6951342ab
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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