Debian Codegraph @

recipes/walrusmag.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class AdvancedUserRecipe1371743239(BasicNewsRecipe):
5 title = 'The Walrus Mag'
6 description = 'National general interest magazine about Canada and its place in the world'
7 language = 'en'
8 __author__ = 'Bert'
9 oldest_article = 34
10 max_articles_per_feed = 100
11 auto_cleanup = True
12
13 feeds = [('The Walrus Mag', 'https://thewalrus.ca/feed/')]
14
15 def get_article_url(self, article):
16 ans = BasicNewsRecipe.get_article_url(self, article)
17 if ans and ans.startswith('/'):
18 ans = 'https://thewalrus.ca' + ans
19 return ans