mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
calibredb: Fix adding books from directories to a remote server running on windows not working
This commit is contained in:
parent
dd7d8ea3c4
commit
bbae28f6a8
@ -81,7 +81,7 @@ def format_group(db, notify_changes, is_remote, args):
|
||||
if is_remote:
|
||||
paths = []
|
||||
for name, data in formats:
|
||||
with lopen(os.path.join(tdir, name), 'wb') as f:
|
||||
with lopen(os.path.join(tdir, os.path.basename(name)), 'wb') as f:
|
||||
f.write(data)
|
||||
paths.append(f.name)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user