diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-05-29 16:03:52 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-05-29 16:03:52 -0400 |
| commit | bba7c0f4a5b919a249c99d4179f1c5f5f43a1416 (patch) | |
| tree | b7ad4d070892d8475d45d929fd0cd5777e681357 /.local/bin | |
| parent | 1379747a1756f613584ab804c3332e1e42d245bb (diff) | |
| parent | 09a773e81d38697172a8135414e2ebdbf7ad3164 (diff) | |
| download | eibhear-bba7c0f4a5b919a249c99d4179f1c5f5f43a1416.tar.gz eibhear-bba7c0f4a5b919a249c99d4179f1c5f5f43a1416.tar.zst eibhear-bba7c0f4a5b919a249c99d4179f1c5f5f43a1416.zip | |
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/booksplit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/booksplit b/.local/bin/booksplit index 0029d0b..3d0ab07 100755 --- a/.local/bin/booksplit +++ b/.local/bin/booksplit @@ -39,6 +39,6 @@ do done < "$2" # The last track must be done outside the loop. echo "From $start to the end: $title" -file="$escbook/$track-$esctitle.$ext" +file="$escbook/$(printf "%.2d" "$track")-$esctitle.$ext" echo "Splitting \"$title\"..." && ffmpeg -nostdin -y -loglevel -8 -i "$inputaudio" -ss "$start" -vn "$file" && echo "Tagging \"$title\"..." && tag -a "$author" -A "$booktitle" -t "$title" -n "$track" -N "$total" -d "$year" "$file" |
