Skip to content

Commit

Permalink
Fix for always failing AC3 track detection
Browse files Browse the repository at this point in the history
At some point, `mkvmerge` changed the output of AC3 track info to be `AC-3` vs `AC3` so the original grep statement always failed. This is a simple fix.
  • Loading branch information
tmchow committed Jul 23, 2019
1 parent 7e0bd14 commit fc0ade2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkvdts2ac3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ else
fi

# Added check to see if AC3 track exists. If so, no need to continue
if [ "$(mkvmerge -i "$MKVFILE" | grep -i "${AUDIOTRACKPREFIX}AC3")" ]; then
if [ "$(mkvmerge -i "$MKVFILE" | grep -i "${AUDIOTRACKPREFIX}AC-3")" ]; then
echo $"AC3 track already exists in '$MKVFILE'."
echo ""
if [ $FORCE = 0 ]; then
Expand Down

0 comments on commit fc0ade2

Please sign in to comment.