fix bugs introduced in previous PR

This commit is contained in:
Kovid Goyal 2021-10-03 13:53:30 +05:30
parent ba54c46ca8
commit 88a517cf53
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
6 changed files with 6 additions and 6 deletions

View File

@ -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()'))

View File

@ -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()'))

View File

@ -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()'))

View File

@ -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)

View File

@ -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)

View File

@ -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