mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-14 09:12:54 -07:00
only set failed if we can verify corrupt. only try install if make exists.
This commit is contained in:
parent
eec3134bdb
commit
e24dcade19
2 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ def initialize(section=None):
|
||||||
|
|
||||||
if not (FFMPEG or FFPROBE):
|
if not (FFMPEG or FFPROBE):
|
||||||
# Auto-install FFMPEG and FFPROBE
|
# Auto-install FFMPEG and FFPROBE
|
||||||
if transcoder.install_ffmpeg():
|
if subprocess.Popen(['which', 'make'], stdout=subprocess.PIPE).communicate()[0].strip() and transcoder.install_ffmpeg():
|
||||||
FFMPEG = subprocess.Popen(['which', 'ffmpeg'], stdout=subprocess.PIPE).communicate()[0].strip()
|
FFMPEG = subprocess.Popen(['which', 'ffmpeg'], stdout=subprocess.PIPE).communicate()[0].strip()
|
||||||
FFPROBE = subprocess.Popen(['which', 'ffprobe'], stdout=subprocess.PIPE).communicate()[0].strip()
|
FFPROBE = subprocess.Popen(['which', 'ffprobe'], stdout=subprocess.PIPE).communicate()[0].strip()
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -20,7 +20,7 @@ def isVideoGood(videofile):
|
||||||
|
|
||||||
if not nzbtomedia.FFPROBE:
|
if not nzbtomedia.FFPROBE:
|
||||||
logger.error("Cannot detect corrupt video files!, set your ffmpeg_path in your autoProcessMedia.cfg ...", 'TRANSCODER')
|
logger.error("Cannot detect corrupt video files!, set your ffmpeg_path in your autoProcessMedia.cfg ...", 'TRANSCODER')
|
||||||
return False
|
return True
|
||||||
|
|
||||||
command = [nzbtomedia.FFPROBE, videofile]
|
command = [nzbtomedia.FFPROBE, videofile]
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue