From 6daf15d75dd799ea0ab7253019d52ccd262f3f87 Mon Sep 17 00:00:00 2001 From: BrotherJohn Date: May 12 2016 17:20:31 +0000 Subject: switchaudio.py: added error details to skipped files list --- diff --git a/switchaudio.py b/switchaudio.py index bff58b0..737049e 100644 --- a/switchaudio.py +++ b/switchaudio.py @@ -36,10 +36,10 @@ def main(cli_params): "--language", "1:ger", "--forced-track", "1:no", "--language", "2:eng", "--forced-track", "2:no", "-a", "1,2", "-d", "0", "-S", "-T", "--no-global-tags", "--no-chapters", - "(", infile, ")", + infile, "--track-order", "0:0,0:2,0:1"]) - except: - skipped_files.append("Exception: " + outfile) + except Exception as err: + skipped_files.append("Exception: " + outfile + "\n " + str(err)) else: if retc == 1: warned_files.append(outfile)