mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
22 lines
635 B
Plaintext
22 lines
635 B
Plaintext
# -*- coding: utf-8 -*-
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class BasicUserRecipe1318619728(BasicNewsRecipe):
|
|
title = u'Korben'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
auto_cleanup = True
|
|
|
|
feeds = [(u'Korben', u'http://feeds2.feedburner.com/KorbensBlog-UpgradeYourMind')]
|
|
|
|
def get_masthead_url(self):
|
|
masthead = 'http://korben.info/wp-content/themes/korben-steaw/hab/logo.png'
|
|
br = BasicNewsRecipe.get_browser(self)
|
|
try:
|
|
br.open(masthead)
|
|
except:
|
|
self.log("\nCover unavailable")
|
|
masthead = None
|
|
return masthead
|