mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue