mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix bugs introduced in previous PR
This commit is contained in:
parent
ba54c46ca8
commit
88a517cf53
@ -53,7 +53,7 @@ class BubokPortugalStore(BasicStoreConfig, StorePlugin):
|
||||
|
||||
title = ''.join(data.xpath('.//div[@class="titulo"]/text()'))
|
||||
|
||||
author = ''.join(data.xpath('.//div[@class="author"]/text()'))
|
||||
author = ''.join(data.xpath('.//div[@class="autor"]/text()'))
|
||||
|
||||
price = ''.join(data.xpath('.//div[@class="precio"]/text()'))
|
||||
|
||||
|
@ -53,7 +53,7 @@ class BubokPublishingStore(BasicStoreConfig, StorePlugin):
|
||||
|
||||
title = ''.join(data.xpath('.//div[@class="titulo"]/text()'))
|
||||
|
||||
author = ''.join(data.xpath('.//div[@class="author"]/text()'))
|
||||
author = ''.join(data.xpath('.//div[@class="autor"]/text()'))
|
||||
|
||||
price = ''.join(data.xpath('.//div[@class="precio"]/text()'))
|
||||
|
||||
|
@ -62,7 +62,7 @@ class RW2010Store(BasicStoreConfig, StorePlugin):
|
||||
with closing(br.open(id.strip(), timeout=timeout/4)) as nf:
|
||||
idata = html.fromstring(nf.read())
|
||||
cover_url = ''.join(idata.xpath('//div[@class="boxa"]//div[@class="img"]/img/@src'))
|
||||
author = ''.join(idata.xpath('//div[@class="boxb"]//h3[text()="Author: "]/span/text()'))
|
||||
author = ''.join(idata.xpath('//div[@class="boxb"]//h3[text()="Autor: "]/span/text()'))
|
||||
title = ''.join(idata.xpath('//div[@class="boxb"]/h2[1]/text()'))
|
||||
title = re.sub(r'\(#.+\)', '', title)
|
||||
formats = ''.join(idata.xpath('//div[@class="boxb"]//h3[text()="Format pliku: "]/span/text()'))
|
||||
|
@ -472,7 +472,7 @@ class ToolbarSettings(QWidget):
|
||||
self.sl = l = QGridLayout()
|
||||
gl.addLayout(l, 1, 0, 1, -1)
|
||||
|
||||
self.gb1 = gb1 = QGroupBox(_('A&available actions'), self)
|
||||
self.gb1 = gb1 = QGroupBox(_('A&vailable actions'), self)
|
||||
self.gb2 = gb2 = QGroupBox(_('&Current actions'), self)
|
||||
gb1.setFlat(True), gb2.setFlat(True)
|
||||
gb1.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
|
||||
|
@ -418,7 +418,7 @@ class ConfigureToolBar(Dialog):
|
||||
|
||||
self.h = h = QHBoxLayout()
|
||||
l.addLayout(h)
|
||||
self.lg = lg = QGroupBox(_('A&available actions'), self)
|
||||
self.lg = lg = QGroupBox(_('A&vailable actions'), self)
|
||||
lg.v = v = QVBoxLayout(lg)
|
||||
v.addWidget(self.available_actions)
|
||||
h.addWidget(lg)
|
||||
|
@ -274,7 +274,7 @@ def test(return_tests=False):
|
||||
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
@unittest.skipIf(is_sanitized, 'Sanitizer enabled can't check for leaks')
|
||||
@unittest.skipIf(is_sanitized, 'Sanitizer enabled can\'t check for leaks')
|
||||
def test_mem_leaks(self):
|
||||
import gc
|
||||
from calibre.utils.mem import get_memory as memory
|
||||
|
Loading…
x
Reference in New Issue
Block a user