mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow book_on_device to be called before set_books_in_library
This commit is contained in:
parent
6e24780d47
commit
3706c371fb
@ -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 ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user