mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 17:56:25 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue