mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-23 22:35:33 +08:00
Fix to use OS unrar in path before those included with Bazarr.
This commit is contained in:
parent
97e72a8f9d
commit
71149a6232
1 changed files with 10 additions and 9 deletions
|
@ -153,6 +153,10 @@ def init_binaries():
|
|||
|
||||
unrar_exe = None
|
||||
exe = None
|
||||
|
||||
if os.path.isfile("unrar"):
|
||||
unrar_exe = "unrar"
|
||||
else:
|
||||
if platform.system() == "Windows": # Windows
|
||||
unrar_exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", "UnRAR", "UnRAR.exe"))
|
||||
|
||||
|
@ -162,9 +166,6 @@ def init_binaries():
|
|||
elif platform.system() == "Linux": # Linux
|
||||
unrar_exe = os.path.abspath(os.path.join(binaries_dir, "Linux", platform.machine(), "UnRAR", "unrar"))
|
||||
|
||||
else:
|
||||
unrar_exe = "unrar"
|
||||
|
||||
if unrar_exe and os.path.isfile(unrar_exe):
|
||||
exe = unrar_exe
|
||||
|
||||
|
|
Loading…
Reference in a new issue