mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 13:11:11 -07:00
Correct return
This commit is contained in:
parent
882d2bf0c8
commit
4ee8cf17a0
1 changed files with 2 additions and 3 deletions
|
@ -38,12 +38,11 @@ def isVideoGood(videofile, status):
|
|||
logger.info("FAILED: [%s] has %s video streams and %s audio streams. Assume corruption." % (fileNameExt, str(len(videoStreams)), str(len(audioStreams))), 'TRANSCODER')
|
||||
return False
|
||||
|
||||
|
||||
def getVideoDetails(videofile):
|
||||
video_details = {}
|
||||
result = 1
|
||||
if not nzbtomedia.FFPROBE:
|
||||
return video_details
|
||||
return video_details, result
|
||||
command = [nzbtomedia.FFPROBE, '-v', 'quiet', '-print_format', 'json', '-show_format', '-show_streams', '-show_error', videofile]
|
||||
try:
|
||||
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
|
@ -408,4 +407,4 @@ def Transcode_directory(dirName):
|
|||
|
||||
if not nzbtomedia.PROCESSOUTPUT and nzbtomedia.DUPLICATE: # We postprocess the original files to CP/SB
|
||||
newDir = dirName
|
||||
return final_result, newDir
|
||||
return final_result, newDir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue