mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Replaces spaces with underscores in library ids to make them more url friendly
This commit is contained in:
parent
914c58d107
commit
585acda8cb
@ -36,7 +36,7 @@ class LibraryBroker(object):
|
||||
seen.add(path)
|
||||
if not LibraryDatabase.exists_at(path):
|
||||
continue
|
||||
bname = library_id = force_unicode(os.path.basename(path), filesystem_encoding)
|
||||
bname = library_id = force_unicode(os.path.basename(path), filesystem_encoding).replace(' ', '_')
|
||||
c = 0
|
||||
while library_id in self.lmap:
|
||||
c += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user