mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI spotted in nexto
This commit is contained in:
parent
60d606910d
commit
d2263aef00
@ -1460,7 +1460,7 @@ class StoreNextoStore(StoreBase):
|
|||||||
actual_plugin = 'calibre.gui2.store.stores.nexto_plugin:NextoStore'
|
actual_plugin = 'calibre.gui2.store.stores.nexto_plugin:NextoStore'
|
||||||
|
|
||||||
headquarters = 'PL'
|
headquarters = 'PL'
|
||||||
formats = ['EPUB', 'PDF']
|
formats = ['EPUB', 'MOBI', 'PDF']
|
||||||
affiliate = True
|
affiliate = True
|
||||||
|
|
||||||
class StoreOpenBooksStore(StoreBase):
|
class StoreOpenBooksStore(StoreBase):
|
||||||
|
@ -68,8 +68,8 @@ class NextoStore(BasicStoreConfig, StorePlugin):
|
|||||||
title = ''.join(data.xpath('.//a[@class="title"]/text()'))
|
title = ''.join(data.xpath('.//a[@class="title"]/text()'))
|
||||||
title = re.sub(r' - ebook$', '', title)
|
title = re.sub(r' - ebook$', '', title)
|
||||||
formats = ', '.join(data.xpath('.//ul[@class="formats_available"]/li//b/text()'))
|
formats = ', '.join(data.xpath('.//ul[@class="formats_available"]/li//b/text()'))
|
||||||
DrmFree = re.search(r'bez.DRM', formats)
|
DrmFree = re.search(r'znak', formats)
|
||||||
formats = re.sub(r'\(.+\)', '', formats)
|
formats = re.sub(r'\ ?\(.+?\)', '', formats)
|
||||||
|
|
||||||
author = ''
|
author = ''
|
||||||
with closing(br.open('http://www.nexto.pl/' + id.strip(), timeout=timeout/4)) as nf:
|
with closing(br.open('http://www.nexto.pl/' + id.strip(), timeout=timeout/4)) as nf:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user