mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Merge branch 'master' of https://github.com/t3d/calibre
This commit is contained in:
commit
a4919c2a59
@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
||||||
store_version = 8 # Needed for dynamic plugin loading
|
store_version = 9 # Needed for dynamic plugin loading
|
||||||
|
|
||||||
__license__ = 'GPL 3'
|
__license__ = 'GPL 3'
|
||||||
__copyright__ = '2011-2014, Tomasz Długosz <tomek3d@gmail.com>'
|
__copyright__ = '2011-2014, Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
@ -31,7 +31,7 @@ import urllib
|
|||||||
def get_results(url, timeout):
|
def get_results(url, timeout):
|
||||||
browser = Browser(default_timeout=timeout)
|
browser = Browser(default_timeout=timeout)
|
||||||
browser.visit(url)
|
browser.visit(url)
|
||||||
browser.wait_for_element('#nw_content_list')
|
browser.wait_for_element('#nw_content_main')
|
||||||
return browser.html
|
return browser.html
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ class WoblinkStore(BasicStoreConfig, StorePlugin):
|
|||||||
d.exec_()
|
d.exec_()
|
||||||
|
|
||||||
def search(self, query, max_results=10, timeout=60):
|
def search(self, query, max_results=10, timeout=60):
|
||||||
url = 'http://woblink.com/katalog-ebooki?query=' + urllib.quote_plus(query.encode('utf-8'))
|
url = 'http://woblink.com/ebooki-kategorie?query=' + urllib.quote_plus(query.encode('utf-8'))
|
||||||
if max_results > 10:
|
if max_results > 10:
|
||||||
if max_results > 20:
|
if max_results > 20:
|
||||||
url += '&limit=30'
|
url += '&limit=30'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user