Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
auto disable fail count if removeOriginalFile is disabled
  • Loading branch information
looi-wh authored Aug 8, 2020
1 parent 1a6d7fb commit 974844c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,13 @@ def combineArray(input):
if codecFormat in str(subprocess.check_output(commandCheckVideo, shell=True)) and audioFormat in str(subprocess.check_output(commandCheckAudio, shell=True)) and str(containerFormat) in str(x):
successCount += 1
else:
print("[FAILED]", x)
failCount += 1
if removeOringalFile == 1:
print("[FAILED]", x)
failCount += 1
if not fileCount == 0:
print("[RESULT]", successCount, "file(s) verified")
print("[RESULT]", failCount, "file(s) failed")
if removeOringalFile == 1:
print("[RESULT]", failCount, "file(s) failed")
print("[RESULT]", doneCount, "file(s) processed")
print("[END] job done")

0 comments on commit 974844c

Please sign in to comment.