mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: Diesel fix drm status.
This commit is contained in:
parent
6e540ae42e
commit
77afc010db
@ -72,7 +72,7 @@ class DieselEbooksStore(BasicStoreConfig, StorePlugin):
|
|||||||
formats = ', '.join(data.xpath('.//div[@class="book-info"]//text()')).strip()
|
formats = ', '.join(data.xpath('.//div[@class="book-info"]//text()')).strip()
|
||||||
a, b, formats = formats.partition('Format:')
|
a, b, formats = formats.partition('Format:')
|
||||||
drm = SearchResult.DRM_LOCKED
|
drm = SearchResult.DRM_LOCKED
|
||||||
if 'drm free' not in formats.lower():
|
if 'drm free' in formats.lower():
|
||||||
drm = SearchResult.DRM_UNLOCKED
|
drm = SearchResult.DRM_UNLOCKED
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user