This commit is contained in:
Kovid Goyal 2025-03-24 08:36:56 +05:30
commit fc64b8d322
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 19 additions and 7 deletions

View File

@ -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'

View File

@ -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

View File

@ -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