mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Merge pull request #34 from thecb1/patch-1
Fix chaptercount for 0-padding
This commit is contained in:
commit
f06b768c55
2
AAXtoMP3
2
AAXtoMP3
@ -68,7 +68,7 @@ normalize_whitespace() {
|
||||
}
|
||||
|
||||
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 ]]
|
||||
then
|
||||
chapter=$(sed -e 's/Chapter \([[:digit:]]\)$/Chapter 0\1/' <<<$chapter)
|
||||
|
Loading…
Reference in New Issue
Block a user