From 62007f323bb512eb1d565f40f0fa7f48e9682487 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 2 May 2022 07:20:21 +0530 Subject: [PATCH] ... --- recipes/ieee_spectrum_mag.recipe | 2 +- recipes/lwn_free.recipe | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/recipes/ieee_spectrum_mag.recipe b/recipes/ieee_spectrum_mag.recipe index 355db3758d..a8c5bed300 100644 --- a/recipes/ieee_spectrum_mag.recipe +++ b/recipes/ieee_spectrum_mag.recipe @@ -7,7 +7,7 @@ import datetime class IEEESpectrumMagazine(BasicNewsRecipe): title = "IEEE Spectrum Magazine" - lang = 'en' + language = 'en' __author__ = 'yodha8' description = "Published on day 1 of every month." oldest_article = 120 # Mag gathers articles published older than a month online. So we scan for 4 months in the feed. diff --git a/recipes/lwn_free.recipe b/recipes/lwn_free.recipe index f9c92b4b1f..6bed962ec6 100644 --- a/recipes/lwn_free.recipe +++ b/recipes/lwn_free.recipe @@ -3,13 +3,16 @@ from calibre.web.feeds.news import BasicNewsRecipe + class LWNFree(BasicNewsRecipe): - title = "LWN Linux Weekly News (Free)" + title = "LWN Linux Weekly News (Free)" + language = 'en' + __author__ = 'yodha8' description = "LWN is published every Thursday. Recipe skips current week's articles (subscriber-only) and pulls free articles from previous week." oldest_article = 14 # So we can grab previous week articles. max_articles_per_feed = 100 - auto_cleanup = True + auto_cleanup = True - feeds = [ + feeds = [ ('LWN Articles', 'https://lwn.net/headlines/Features'), ]