mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Update The Economist
Fixes #1758535 [The economist download is not working](https://bugs.launchpad.net/calibre/+bug/1758535)
This commit is contained in:
parent
83d03f9ae1
commit
e5bf9607fa
@ -22,9 +22,7 @@ class NoArticles(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def process_url(url, print_version=True):
|
def process_url(url):
|
||||||
if print_version:
|
|
||||||
url += '/print'
|
|
||||||
if url.startswith('/'):
|
if url.startswith('/'):
|
||||||
url = 'https://www.economist.com' + url
|
url = 'https://www.economist.com' + url
|
||||||
return url
|
return url
|
||||||
|
@ -22,9 +22,7 @@ class NoArticles(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def process_url(url, print_version=True):
|
def process_url(url):
|
||||||
if print_version:
|
|
||||||
url += '/print'
|
|
||||||
if url.startswith('/'):
|
if url.startswith('/'):
|
||||||
url = 'https://www.economist.com' + url
|
url = 'https://www.economist.com' + url
|
||||||
return url
|
return url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user