]> xmof Git - DeDRM.git/commitdiff
Fix for kobo users who haven't yet bought a book.
authorapprenticeharper <apprenticeharper@gmail.com>
Mon, 7 Sep 2015 06:52:23 +0000 (07:52 +0100)
committerapprenticeharper <apprenticeharper@gmail.com>
Mon, 7 Sep 2015 06:52:23 +0000 (07:52 +0100)
Obok_calibre_plugin/obok_plugin.zip
Obok_calibre_plugin/obok_plugin/__init__.py
Obok_calibre_plugin/obok_plugin/obok/obok.py
Other_Tools/Kobo/obok.py

index ffa230e7731b75eb999c8c3743f9a5ffe2d8741f..8c22732032e6d313a1ab224d2ee92e6017721f32 100644 (file)
Binary files a/Obok_calibre_plugin/obok_plugin.zip and b/Obok_calibre_plugin/obok_plugin.zip differ
index f627a42498d87cb0f340cd9f416de867f8c0a1f2..0b4e7d31247fd1deb7ea487aaccf9372b4603ce8 100644 (file)
@@ -19,7 +19,7 @@ except NameError:
 PLUGIN_NAME = 'Obok DeDRM'
 PLUGIN_SAFE_NAME = PLUGIN_NAME.strip().lower().replace(' ', '_')
 PLUGIN_DESCRIPTION = _('Removes DRM from Kobo kepubs and adds them to the library.')
-PLUGIN_VERSION_TUPLE = (3, 1, 4)
+PLUGIN_VERSION_TUPLE = (3, 1, 5)
 PLUGIN_VERSION = '.'.join([str(x) for x in PLUGIN_VERSION_TUPLE])
 HELPFILE_NAME = PLUGIN_SAFE_NAME + '_Help.htm'
 PLUGIN_AUTHORS = 'Anon'
index 054515229b1880ee613981602a0b71d55bbec3af..1e93c0e5e7a68fb0a86cab796a2202f6260ed599 100644 (file)
@@ -1,6 +1,9 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
+# Version 3.1.5 September 2015
+# Removed requirement that a purchase has been made.
+#
 # Version 3.1.4 September 2015
 # Updated for version 3.17 of the Windows Desktop app.
 #
 #
 """Manage all Kobo books, either encrypted or DRM-free."""
 
-__version__ = '3.1.3'
+__version__ = '3.1.5'
 
 import sys
 import os
@@ -301,7 +304,7 @@ class KoboLibrary(object):
 
     def __getuserids (self):
         userids = []
-        cursor = self.__cursor.execute('SELECT UserID FROM user WHERE HasMadePurchase = "true"')
+        cursor = self.__cursor.execute('SELECT UserID FROM user')
         row = cursor.fetchone()
         while row is not None:
             try:
index 054515229b1880ee613981602a0b71d55bbec3af..1e93c0e5e7a68fb0a86cab796a2202f6260ed599 100644 (file)
@@ -1,6 +1,9 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
+# Version 3.1.5 September 2015
+# Removed requirement that a purchase has been made.
+#
 # Version 3.1.4 September 2015
 # Updated for version 3.17 of the Windows Desktop app.
 #
 #
 """Manage all Kobo books, either encrypted or DRM-free."""
 
-__version__ = '3.1.3'
+__version__ = '3.1.5'
 
 import sys
 import os
@@ -301,7 +304,7 @@ class KoboLibrary(object):
 
     def __getuserids (self):
         userids = []
-        cursor = self.__cursor.execute('SELECT UserID FROM user WHERE HasMadePurchase = "true"')
+        cursor = self.__cursor.execute('SELECT UserID FROM user')
         row = cursor.fetchone()
         while row is not None:
             try: