mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Add omgubuntu news website recipe
This commit is contained in:
parent
7bee77bbaa
commit
4ca1db0c81
17
recipes/omgubuntu.recipe
Normal file
17
recipes/omgubuntu.recipe
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user