ID3v2: Change default number from 1 to 0 for track and disk

This commit is contained in:
Keita Kita 2023-02-23 20:25:32 +09:00 committed by Alex
parent 32ddd3b65e
commit 94f8aac840
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ const V4_MULTI_VALUE_SEPARATOR: char = '\0';
const NUMBER_PAIR_SEPARATOR: char = '/';
// This is used as the default number of track and disk.
const DEFAULT_NUMBER_IN_PAIR: u32 = 1;
const DEFAULT_NUMBER_IN_PAIR: u32 = 0;
// These keys have the part of the number pair.
const NUMBER_PAIR_KEYS: &[ItemKey] = &[

View file

@ -240,9 +240,9 @@ fn save_total_of_track_and_disk_to_id3v2() {
let tag = tagged_file.tag(TagType::ID3v2).unwrap();
assert_eq!(tag.track().unwrap(), 1);
assert_eq!(tag.track().unwrap(), 0);
assert_eq!(tag.track_total().unwrap(), track_total);
assert_eq!(tag.disk().unwrap(), 1);
assert_eq!(tag.disk().unwrap(), 0);
assert_eq!(tag.disk_total().unwrap(), disk_total);
}