Skip to content

Commit

Permalink
Update The Economist
Browse files Browse the repository at this point in the history
Fixes #1758535 [The economist download is not working](https://bugs.launchpad.net/calibre/+bug/1758535)
  • Loading branch information
kovidgoyal committed Mar 25, 2018
1 parent 83d03f9 commit e5bf960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions recipes/economist.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions recipes/economist_free.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5bf960

Please sign in to comment.