mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
fix extractor paths for Windows. #574
This commit is contained in:
parent
917bf53469
commit
439f129d4b
2 changed files with 2 additions and 2 deletions
|
@ -603,7 +603,7 @@ def initialize(section=None):
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
FFMPEG = os.path.join(FFMPEG_PATH, 'ffmpeg.exe')
|
FFMPEG = os.path.join(FFMPEG_PATH, 'ffmpeg.exe')
|
||||||
FFPROBE = os.path.join(FFMPEG_PATH, 'ffprobe.exe')
|
FFPROBE = os.path.join(FFMPEG_PATH, 'ffprobe.exe')
|
||||||
SEVENZIP = os.path.join(PROGRAM_DIR, 'nzbtomedia/extractor/bin/' + platform.machine() + '/7z.exe')
|
SEVENZIP = os.path.join(PROGRAM_DIR, 'nzbtomedia', 'extractor', 'bin', platform.machine(), '7z.exe')
|
||||||
|
|
||||||
if not (os.path.isfile(FFMPEG)): # problem
|
if not (os.path.isfile(FFMPEG)): # problem
|
||||||
FFMPEG = None
|
FFMPEG = None
|
||||||
|
|
|
@ -8,7 +8,7 @@ def extract(filePath, outputDestination):
|
||||||
success = 0
|
success = 0
|
||||||
# Using Windows
|
# Using Windows
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
chplocation = nzbtomedia.os.path.join(nzbtomedia.PROGRAM_DIR, 'nzbtomedia/extractor/bin/chp.exe')
|
chplocation = os.path.join(nzbtomedia.PROGRAM_DIR, 'nzbtomedia', 'extractor', 'bin', 'chp.exe')
|
||||||
|
|
||||||
if not os.path.exists(nzbtomedia.SEVENZIP):
|
if not os.path.exists(nzbtomedia.SEVENZIP):
|
||||||
nzbtomedia.logger.error("EXTRACTOR: Could not find 7-zip, Exiting")
|
nzbtomedia.logger.error("EXTRACTOR: Could not find 7-zip, Exiting")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue