mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Fix chaptercount for 0-padding
This commit is contained in:
parent
1017f9a6e7
commit
f7c4d0dce8
2
AAXtoMP3
2
AAXtoMP3
@ -68,7 +68,7 @@ normalize_whitespace() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
chapter_padding() {
|
chapter_padding() {
|
||||||
chaptercount=$($GREP -Pc "title\s+:\sChapter\s\d+" $metadata_file)
|
chaptercount=$($GREP -Pc "Chapter.*start.*end" $metadata_file)
|
||||||
if [[ $chaptercount -gt 9 && $chaptercount -lt 100 ]]
|
if [[ $chaptercount -gt 9 && $chaptercount -lt 100 ]]
|
||||||
then
|
then
|
||||||
chapter=$(sed -e 's/Chapter \([[:digit:]]\)$/Chapter 0\1/' <<<$chapter)
|
chapter=$(sed -e 's/Chapter \([[:digit:]]\)$/Chapter 0\1/' <<<$chapter)
|
||||||
|
Loading…
Reference in New Issue
Block a user