mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -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
|
||||
|
||||
|
||||
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…
x
Reference in New Issue
Block a user