mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Wolne Lektury - download fix
This commit is contained in:
parent
2691875730
commit
e3c0bca805
@ -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 = 2 # Needed for dynamic plugin loading
|
store_version = 3 # Needed for dynamic plugin loading
|
||||||
|
|
||||||
__license__ = 'GPL 3'
|
__license__ = 'GPL 3'
|
||||||
__copyright__ = '2012-2014, Tomasz Długosz <tomek3d@gmail.com>'
|
__copyright__ = '2012-2014, Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
@ -63,7 +63,7 @@ class WolneLekturyStore(BasicStoreConfig, StorePlugin):
|
|||||||
counter -= 1
|
counter -= 1
|
||||||
|
|
||||||
s = SearchResult()
|
s = SearchResult()
|
||||||
for link in data.xpath('.//div[@class="book-box-formats mono"]/span/a'):
|
for link in data.xpath('.//div[@class="book-box-formats"]/span/a'):
|
||||||
ext = ''.join(link.xpath('./text()'))
|
ext = ''.join(link.xpath('./text()'))
|
||||||
href = 'http://wolnelektury.pl' + link.get('href')
|
href = 'http://wolnelektury.pl' + link.get('href')
|
||||||
s.downloads[ext] = href
|
s.downloads[ext] = href
|
||||||
|
Loading…
x
Reference in New Issue
Block a user