mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-02 23:31:59 -04:00
Fix get books kobo plugin
This commit is contained in:
parent
970a46fd23
commit
a7c2d8b5cb
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||
|
||||
store_version = 15 # Needed for dynamic plugin loading
|
||||
store_version = 16 # Needed for dynamic plugin loading
|
||||
|
||||
__license__ = 'GPL 3'
|
||||
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
|
||||
@ -40,7 +40,7 @@ read_url.storage = []
|
||||
|
||||
def search_kobo(query, max_results=10, timeout=60, write_html_to=None):
|
||||
from css_selectors import Select
|
||||
url = 'https://www.kobobooks.com/search?query=' + quote_plus(query)
|
||||
url = 'https://www.kobo.com/search?query=' + quote_plus(query)
|
||||
raw = read_url(url, timeout=timeout)
|
||||
if write_html_to is not None:
|
||||
with open(write_html_to, 'w') as f:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user