From bc5904f56082be6b7b0588da4f7f38766543b3c0 Mon Sep 17 00:00:00 2001 From: John Schember Date: Sun, 29 Apr 2012 14:56:11 -0400 Subject: [PATCH] Store: ebooks.com fix cover image. --- src/calibre/gui2/store/stores/ebooks_com_plugin.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/calibre/gui2/store/stores/ebooks_com_plugin.py b/src/calibre/gui2/store/stores/ebooks_com_plugin.py index 99510005f0..d8bd2ef9fa 100644 --- a/src/calibre/gui2/store/stores/ebooks_com_plugin.py +++ b/src/calibre/gui2/store/stores/ebooks_com_plugin.py @@ -64,11 +64,7 @@ class EbookscomStore(BasicStoreConfig, StorePlugin): continue id = mo.group() - cover_url = '' - cover_load = ''.join(data.xpath('.//div[@class="img"]//img/@onload')) - mo = re.search('(?<=\').+?(?=\')', cover_load) - if mo: - cover_url = mo.group(); + cover_url = ''.join(data.xpath('.//div[@class="img"]//img/@src')) title = '' author = ''