Get Books: Handle website change that broke the SONY Store plugin

This commit is contained in:
Kovid Goyal 2012-10-20 21:37:07 +05:30
parent 76312ec4e7
commit 765296c2ad

View File

@ -66,6 +66,8 @@ class SonyStore(BasicStoreConfig, StorePlugin):
detail_url = ''.join(item.xpath('descendant::h3[@class="item"]'
'/descendant::a[@class="fn" and @href]/@href'))
if not detail_url: continue
if detail_url.startswith('/'):
detail_url = 'http:'+detail_url
s.detail_item = detail_url
counter -= 1