mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 07:26:10 +01: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
2 changed files with 2 additions and 6 deletions
|
|
@ -22,9 +22,7 @@ class NoArticles(Exception):
|
|||
pass
|
||||
|
||||
|
||||
def process_url(url, print_version=True):
|
||||
if print_version:
|
||||
url += '/print'
|
||||
def process_url(url):
|
||||
if url.startswith('/'):
|
||||
url = 'https://www.economist.com' + url
|
||||
return url
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ class NoArticles(Exception):
|
|||
pass
|
||||
|
||||
|
||||
def process_url(url, print_version=True):
|
||||
if print_version:
|
||||
url += '/print'
|
||||
def process_url(url):
|
||||
if url.startswith('/'):
|
||||
url = 'https://www.economist.com' + url
|
||||
return url
|
||||
|
|
|
|||
Loading…
Reference in a new issue