Commit 7bf40a82 authored by Lev Serebryakov's avatar Lev Serebryakov
Browse files

Use configured temporary path for FB2 book extraction.

Use configured temporary path for FB2 book extraction.

Don't use hardcoded '/tmp' as it doesn't work if something other is configured.
parent 547176e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -846,7 +846,7 @@ class opdsClient():
        elif cat_type==sopdsdb.CAT_ZIP:
           fz=codecs.open(full_path.encode("utf-8"), "rb")
           z = zipf.ZipFile(fz, 'r', allowZip64=True)
           z.extract(book_name,'/tmp')
           z.extract(book_name,self.cfg.TEMP_DIR)
           tmp_fb2_path=os.path.join(self.cfg.TEMP_DIR,book_name)
           file_path=tmp_fb2_path