mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
Added %N for the cue-to-chapter-name conversion routine (track number padded with a zero).
This commit is contained in:
parent
89b68ad397
commit
52e0186fc3
@ -66,9 +66,12 @@ for this name can be set. The following meta characters are supported:
|
||||
.br
|
||||
\fB%p\fR is replaced by the current entry's \fIPERFORMER\fR string,
|
||||
.br
|
||||
\fB%t\fR is replaced by the current entry's \fITITLE\fR string and
|
||||
\fB%t\fR is replaced by the current entry's \fITITLE\fR string,
|
||||
.br
|
||||
\fB%n\fR is replaced by the current track number.
|
||||
\fB%n\fR is replaced by the current track number and
|
||||
.br
|
||||
\fB%N\fR is replaced by the current track number padded with a leading zero if
|
||||
it is < 10.
|
||||
.br
|
||||
Everything else is copied as-is.
|
||||
.br
|
||||
|
@ -283,7 +283,11 @@ static void cue_entries_to_chapter_name(string &performer, string &title,
|
||||
name += title;
|
||||
else if (*next_char == 'n')
|
||||
name += to_string(num);
|
||||
else {
|
||||
else if (*next_char == 'N') {
|
||||
if (num < 10)
|
||||
name += '0';
|
||||
name += to_string(num);
|
||||
} else {
|
||||
name += *this_char;
|
||||
this_char--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user