From e5bf9607faefecf865ed09be9ea00f36d027bb97 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 25 Mar 2018 08:24:07 +0530 Subject: [PATCH] Update The Economist Fixes #1758535 [The economist download is not working](https://bugs.launchpad.net/calibre/+bug/1758535) --- recipes/economist.recipe | 4 +--- recipes/economist_free.recipe | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 0675e015a2..a5291bc6cc 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -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 diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 0675e015a2..a5291bc6cc 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -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