| 1 |
#!/usr/bin/env python |
| 2 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 3 |
|
| 4 |
|
| 5 |
class BasicUserRecipe1318619728(BasicNewsRecipe): |
| 6 |
title = 'Korben' |
| 7 |
oldest_article = 7 |
| 8 |
max_articles_per_feed = 100 |
| 9 |
auto_cleanup = True |
| 10 |
language = 'fr' |
| 11 |
|
| 12 |
feeds = [('Korben', 'http://feeds2.feedburner.com/KorbensBlog-UpgradeYourMind')] |
| 13 |
|
| 14 |
def get_masthead_url(self): |
| 15 |
masthead = 'http://korben.info/wp-content/themes/korben-steaw/hab/logo.png' |
| 16 |
br = BasicNewsRecipe.get_browser(self) |
| 17 |
try: |
| 18 |
br.open(masthead) |
| 19 |
except Exception: |
| 20 |
self.log('\nCover unavailable') |
| 21 |
masthead = None |
| 22 |
return masthead |