calibredb: Fix adding books from directories to a remote server running on windows not working

This commit is contained in:
Kovid Goyal 2019-01-03 16:35:07 +05:30
parent dd7d8ea3c4
commit bbae28f6a8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -81,7 +81,7 @@ def format_group(db, notify_changes, is_remote, args):
if is_remote: if is_remote:
paths = [] paths = []
for name, data in formats: 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) f.write(data)
paths.append(f.name) paths.append(f.name)
else: else: