Fix for kobo users who haven't yet bought a book.
This commit is contained in:
parent
07485be2c0
commit
488924d443
Binary file not shown.
|
@ -19,7 +19,7 @@ except NameError:
|
||||||
PLUGIN_NAME = 'Obok DeDRM'
|
PLUGIN_NAME = 'Obok DeDRM'
|
||||||
PLUGIN_SAFE_NAME = PLUGIN_NAME.strip().lower().replace(' ', '_')
|
PLUGIN_SAFE_NAME = PLUGIN_NAME.strip().lower().replace(' ', '_')
|
||||||
PLUGIN_DESCRIPTION = _('Removes DRM from Kobo kepubs and adds them to the library.')
|
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])
|
PLUGIN_VERSION = '.'.join([str(x) for x in PLUGIN_VERSION_TUPLE])
|
||||||
HELPFILE_NAME = PLUGIN_SAFE_NAME + '_Help.htm'
|
HELPFILE_NAME = PLUGIN_SAFE_NAME + '_Help.htm'
|
||||||
PLUGIN_AUTHORS = 'Anon'
|
PLUGIN_AUTHORS = 'Anon'
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Version 3.1.5 September 2015
|
||||||
|
# Removed requirement that a purchase has been made.
|
||||||
|
#
|
||||||
# Version 3.1.4 September 2015
|
# Version 3.1.4 September 2015
|
||||||
# Updated for version 3.17 of the Windows Desktop app.
|
# Updated for version 3.17 of the Windows Desktop app.
|
||||||
#
|
#
|
||||||
|
@ -115,7 +118,7 @@
|
||||||
#
|
#
|
||||||
"""Manage all Kobo books, either encrypted or DRM-free."""
|
"""Manage all Kobo books, either encrypted or DRM-free."""
|
||||||
|
|
||||||
__version__ = '3.1.3'
|
__version__ = '3.1.5'
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
@ -301,7 +304,7 @@ class KoboLibrary(object):
|
||||||
|
|
||||||
def __getuserids (self):
|
def __getuserids (self):
|
||||||
userids = []
|
userids = []
|
||||||
cursor = self.__cursor.execute('SELECT UserID FROM user WHERE HasMadePurchase = "true"')
|
cursor = self.__cursor.execute('SELECT UserID FROM user')
|
||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
while row is not None:
|
while row is not None:
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Version 3.1.5 September 2015
|
||||||
|
# Removed requirement that a purchase has been made.
|
||||||
|
#
|
||||||
# Version 3.1.4 September 2015
|
# Version 3.1.4 September 2015
|
||||||
# Updated for version 3.17 of the Windows Desktop app.
|
# Updated for version 3.17 of the Windows Desktop app.
|
||||||
#
|
#
|
||||||
|
@ -115,7 +118,7 @@
|
||||||
#
|
#
|
||||||
"""Manage all Kobo books, either encrypted or DRM-free."""
|
"""Manage all Kobo books, either encrypted or DRM-free."""
|
||||||
|
|
||||||
__version__ = '3.1.3'
|
__version__ = '3.1.5'
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
@ -301,7 +304,7 @@ class KoboLibrary(object):
|
||||||
|
|
||||||
def __getuserids (self):
|
def __getuserids (self):
|
||||||
userids = []
|
userids = []
|
||||||
cursor = self.__cursor.execute('SELECT UserID FROM user WHERE HasMadePurchase = "true"')
|
cursor = self.__cursor.execute('SELECT UserID FROM user')
|
||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
while row is not None:
|
while row is not None:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue