Store: ...

This commit is contained in:
John Schember 2011-05-28 10:41:51 -04:00
parent 93128ab03f
commit 9b245bdcf5
2 changed files with 6 additions and 7 deletions

View file

@ -1420,7 +1420,7 @@ class StoreWoblinkStore(StoreBase):
StoreBeWriteStore,
StoreDieselEbooksStore,
StoreEbookscomStore,
#StoreEBookShoppeUKStore,
StoreEBookShoppeUKStore,
StoreEPubBuyDEStore,
StoreEHarlequinStore,
StoreFeedbooksStore,

View file

@ -62,18 +62,17 @@ def search(self, query, max_results=10, timeout=60):
s = SearchResult()
s.cover_url = cover_url
s.title = title.strip()
# Set the author to the query terms to ensure that author
# queries match something when pruning searches. Of course, this
# means that all books will match. Sigh...
s.author = query
s.price = price
s.drm = SearchResult.DRM_UNLOCKED
s.detail_item = id
s.formats = ''
self.my_get_details(s, timeout)
if not s.author:
continue
yield s
def get_details(self, search_result, timeout):
def my_get_details(self, search_result, timeout):
br = browser()
with closing(br.open(search_result.detail_item, timeout=timeout)) as nf:
idata = html.fromstring(nf.read())