mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
fc64b8d322
@ -142,7 +142,7 @@ def process_url(url):
|
|||||||
|
|
||||||
class Econ1843(BasicNewsRecipe):
|
class Econ1843(BasicNewsRecipe):
|
||||||
|
|
||||||
title = 'Economist 1843'
|
title = 'The Economist 1843'
|
||||||
language = 'en_GB'
|
language = 'en_GB'
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
masthead_url = 'https://www.livemint.com/lm-img/dev/economist-logo-oneline.png'
|
masthead_url = 'https://www.livemint.com/lm-img/dev/economist-logo-oneline.png'
|
||||||
|
@ -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.',
|
'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',
|
'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):
|
def __init__(self, *args, **kwargs):
|
||||||
BasicNewsRecipe.__init__(self, *args, **kwargs)
|
BasicNewsRecipe.__init__(self, *args, **kwargs)
|
||||||
c = self.recipe_specific_options.get('date')
|
d = self.recipe_specific_options.get('de')
|
||||||
if c and isinstance(c, str):
|
if d and isinstance(d, str):
|
||||||
self.from_archive = True
|
if d.lower().strip() == 'yes':
|
||||||
|
self.from_archive = False
|
||||||
|
|
||||||
needs_subscription = False
|
needs_subscription = False
|
||||||
|
|
||||||
|
@ -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.',
|
'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',
|
'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):
|
def __init__(self, *args, **kwargs):
|
||||||
BasicNewsRecipe.__init__(self, *args, **kwargs)
|
BasicNewsRecipe.__init__(self, *args, **kwargs)
|
||||||
c = self.recipe_specific_options.get('date')
|
d = self.recipe_specific_options.get('de')
|
||||||
if c and isinstance(c, str):
|
if d and isinstance(d, str):
|
||||||
self.from_archive = True
|
if d.lower().strip() == 'yes':
|
||||||
|
self.from_archive = False
|
||||||
|
|
||||||
needs_subscription = False
|
needs_subscription = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user