mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
20 lines
629 B
Plaintext
20 lines
629 B
Plaintext
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class AdvancedUserRecipe1371743239(BasicNewsRecipe):
|
|
title = u'The Walrus Mag'
|
|
description = 'National general interest magazine about Canada and its place in the world'
|
|
language = 'en'
|
|
__author__ = 'Bert'
|
|
oldest_article = 34
|
|
max_articles_per_feed = 100
|
|
auto_cleanup = True
|
|
|
|
feeds = [(u'The Walrus Mag', u'https://thewalrus.ca/feed/')]
|
|
|
|
def get_article_url(self, article):
|
|
ans = BasicNewsRecipe.get_article_url(self, article)
|
|
if ans and ans.startswith('/'):
|
|
ans = 'https://thewalrus.ca' + ans
|
|
return ans
|