Allow book_on_device to be called before set_books_in_library

This commit is contained in:
Kovid Goyal 2010-09-10 01:48:16 -06:00
parent 6e24780d47
commit 3706c371fb

View File

@ -1325,6 +1325,9 @@ class DeviceMixin(object): # {{{
self.book_db_uuid_path_map = None
return
if not hasattr(self, 'db_book_uuid_cache'):
return loc
string_pat = re.compile('(?u)\W|[_]')
def clean_string(x):
x = x.lower() if x else ''