Store: Diesel fix drm status.

This commit is contained in:
John Schember 2012-05-12 13:38:06 -04:00
parent 6e540ae42e
commit 77afc010db

View File

@ -72,7 +72,7 @@ class DieselEbooksStore(BasicStoreConfig, StorePlugin):
formats = ', '.join(data.xpath('.//div[@class="book-info"]//text()')).strip()
a, b, formats = formats.partition('Format:')
drm = SearchResult.DRM_LOCKED
if 'drm free' not in formats.lower():
if 'drm free' in formats.lower():
drm = SearchResult.DRM_UNLOCKED