diff --git a/recipes/1843.recipe b/recipes/1843.recipe index f2ae6015a0..5a77a63524 100644 --- a/recipes/1843.recipe +++ b/recipes/1843.recipe @@ -142,7 +142,7 @@ def process_url(url): class Econ1843(BasicNewsRecipe): - title = 'Economist 1843' + title = 'The Economist 1843' language = 'en_GB' encoding = 'utf-8' masthead_url = 'https://www.livemint.com/lm-img/dev/economist-logo-oneline.png' diff --git a/recipes/economist.recipe b/recipes/economist.recipe index e570dc6a3b..ad37e0414b 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -264,13 +264,19 @@ class Economist(BasicNewsRecipe): 'long': 'This is useful for non e-ink devices, and for a lower file size\nthan the default, use from 480, 384, 360, 256.', 'default': '600', }, + 'de': { + 'short': 'Digital Edition', + 'long': 'Yes/No. Digital Edition does not skip some articles based on your location.', + 'default': 'No', + } } def __init__(self, *args, **kwargs): BasicNewsRecipe.__init__(self, *args, **kwargs) - c = self.recipe_specific_options.get('date') - if c and isinstance(c, str): - self.from_archive = True + d = self.recipe_specific_options.get('de') + if d and isinstance(d, str): + if d.lower().strip() == 'yes': + self.from_archive = False needs_subscription = False diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index e570dc6a3b..ad37e0414b 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -264,13 +264,19 @@ class Economist(BasicNewsRecipe): 'long': 'This is useful for non e-ink devices, and for a lower file size\nthan the default, use from 480, 384, 360, 256.', 'default': '600', }, + 'de': { + 'short': 'Digital Edition', + 'long': 'Yes/No. Digital Edition does not skip some articles based on your location.', + 'default': 'No', + } } def __init__(self, *args, **kwargs): BasicNewsRecipe.__init__(self, *args, **kwargs) - c = self.recipe_specific_options.get('date') - if c and isinstance(c, str): - self.from_archive = True + d = self.recipe_specific_options.get('de') + if d and isinstance(d, str): + if d.lower().strip() == 'yes': + self.from_archive = False needs_subscription = False