Skip to content
Discussion options

You must be logged in to vote

Good catch. That comes from this handler for current/total track numbers:

// Support the case of TRACKNUMBER being equal to current/total
k if k.eq_ignore_ascii_case(b"TRACKNUMBER") => {
match utf8_decode_str(value) {
Ok(value) => {
// try to parse as current/total
let mut value_split = value.splitn(2, '/');
let track_number: Option<u32> =
value_split.next().and_then(|b| b.parse().ok());
let track_total: Option<u32> =
value_split.next().and_then(|b| b.parse().ok());
if let Some(n) = track_number {
tag.set_track(n);
} else {
// Probably some other for…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Methapon2001
Comment options

@Serial-ATA
Comment options

@Methapon2001
Comment options

@Methapon2001
Comment options

@Serial-ATA
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Methapon2001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants