diff options
| author | Jaime Lopez <jaimelopezav@gmail.com> | 2020-05-29 10:37:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 13:37:15 -0400 |
| commit | 09a773e81d38697172a8135414e2ebdbf7ad3164 (patch) | |
| tree | b7f713e528d9089f3ac394cbca8bcaed228c8d07 /.local | |
| parent | ce94f3ee8eb21aba0649d1a811a9fc84ec851082 (diff) | |
| download | eibhear-09a773e81d38697172a8135414e2ebdbf7ad3164.tar.gz eibhear-09a773e81d38697172a8135414e2ebdbf7ad3164.tar.zst eibhear-09a773e81d38697172a8135414e2ebdbf7ad3164.zip | |
adds 2 digits for last track for cases when less than 10 tracks (#660)
Diffstat (limited to '.local')
| -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" |
