mirror of
https://github.com/janeczku/calibre-web
synced 2026-08-23 19:28:52 +00:00
Fix for #3684 (Send to eReader Fails with Attachment not found, if path(s) contains spaces)
Merge remote-tracking branch 'embed_helper-arg-fix/embed_helper-arg-fix'
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ log = logger.create()
|
||||
|
||||
def do_calibre_export(book_id, book_format):
|
||||
try:
|
||||
quotes = [4, 6]
|
||||
quotes = [5, 7]
|
||||
tmp_dir = get_temp_dir()
|
||||
calibredb_binarypath = get_calibre_binarypath("calibredb")
|
||||
temp_file_name = str(uuid4())
|
||||
|
||||
@@ -22,9 +22,7 @@ import subprocess
|
||||
import re
|
||||
|
||||
def process_open(command, quotes=(), env=None, sout=subprocess.PIPE, serr=subprocess.PIPE, newlines=True):
|
||||
# Linux py2.7 encode as list without quotes no empty element for parameters
|
||||
# linux py3.x no encode and as list without quotes no empty element for parameters
|
||||
# windows py2.7 encode as string with quotes empty element for parameters is okay
|
||||
# windows py 3.x no encode and as string with quotes empty element for parameters is okay
|
||||
# separate handling for windows and linux
|
||||
if os.name == 'nt':
|
||||
|
||||
Reference in New Issue
Block a user