mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2025-03-04 23:07:20 +00:00
ID3v2: Change default number from 1 to 0 for track and disk
This commit is contained in:
parent
32ddd3b65e
commit
94f8aac840
2 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ const V4_MULTI_VALUE_SEPARATOR: char = '\0';
|
||||||
const NUMBER_PAIR_SEPARATOR: char = '/';
|
const NUMBER_PAIR_SEPARATOR: char = '/';
|
||||||
|
|
||||||
// This is used as the default number of track and disk.
|
// 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.
|
// These keys have the part of the number pair.
|
||||||
const NUMBER_PAIR_KEYS: &[ItemKey] = &[
|
const NUMBER_PAIR_KEYS: &[ItemKey] = &[
|
||||||
|
|
|
@ -240,9 +240,9 @@ fn save_total_of_track_and_disk_to_id3v2() {
|
||||||
|
|
||||||
let tag = tagged_file.tag(TagType::ID3v2).unwrap();
|
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.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);
|
assert_eq!(tag.disk_total().unwrap(), disk_total);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue