From 6e540ae42e22ce7da456cd380ac03b1508a8275e Mon Sep 17 00:00:00 2001 From: John Schember Date: Sat, 12 May 2012 13:34:10 -0400 Subject: [PATCH] Store: Kobo Fix DRM status. --- src/calibre/gui2/store/stores/kobo_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/store/stores/kobo_plugin.py b/src/calibre/gui2/store/stores/kobo_plugin.py index 249d59ec5c..c888c0a252 100644 --- a/src/calibre/gui2/store/stores/kobo_plugin.py +++ b/src/calibre/gui2/store/stores/kobo_plugin.py @@ -69,7 +69,7 @@ class KoboStore(BasicStoreConfig, StorePlugin): title = ''.join(data.xpath('.//div[@class="SCItemHeader"]/h1/a[1]/text()')) author = ', '.join(data.xpath('.//div[@class="SCItemSummary"]//span//a/text()')) - drm = data.xpath('boolean(.//span[@class="SCAvailibilityFormatsText" and contains(text(), "DRM")])') + drm = data.xpath('boolean(.//span[@class="SCAvailibilityFormatsText" and not(contains(text(), "DRM-Free"))])') counter -= 1