mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix #1869675 [Spectator Magazine download not working](https://bugs.launchpad.net/calibre/+bug/1869675)
This commit is contained in:
parent
47fbf3b885
commit
46d87fe7c6
1 changed files with 6 additions and 1 deletions
|
|
@ -11,6 +11,11 @@
|
|||
|
||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||
|
||||
try:
|
||||
from urllib.parse import quote
|
||||
except ImportError:
|
||||
from urllib import quote
|
||||
|
||||
|
||||
def absolutize(url):
|
||||
return 'https://spectator.co.uk' + url
|
||||
|
|
@ -50,7 +55,7 @@ def make_url(utype, query, includes=(), limit=None):
|
|||
ans += '&limit={}'.format(limit)
|
||||
for inc in includes:
|
||||
ans += '&include[]=' + inc
|
||||
ans += '&query=' + json.dumps(query)
|
||||
ans += '&query=' + quote(json.dumps(query))
|
||||
return ans
|
||||
|
||||
def get_result(url):
|
||||
|
|
|
|||
Loading…
Reference in a new issue