diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-01-17 10:50:47 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-01-17 10:50:47 +0100 |
commit | 2d9bca9a1eb75771a308668e2b365e82e5039e5a (patch) | |
tree | b8d54909d8396f1c583ddb33268569a1998ef280 /src/main.rs | |
parent | 771ff47545cea2b3e9a12aceb305ffcb53aa40b6 (diff) |
Partial support for ID3v2.4
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index ab070ee..6c15834 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ mod options; fn parse_options_into(opt: &mut Options) { let mut ap = ArgumentParser::new(); - ap.set_description("ID3v2 tag editor/fixer. Incomplete/work-in-progress."); + ap.set_description("ID3v2 tag editor/fixer. Incomplete/work-in-progress. Support for ID3v2.3, with partial support of ID3v2.4 (no footer tags supported)."); ap.refer(&mut opt.write) .add_option(&["-w", "--write"], StoreTrue, @@ -68,11 +68,11 @@ fn modify_tag(tag: &mut ID3v2, new_frame: Frame) -> io::Result<()> { match indices.len() { 0 => { - tag.frames.push(new_frame.to_raw()?); + tag.frames.push(tag.to_raw(new_frame)?); } 1 => { - tag.frames[indices[0]] = new_frame.to_raw()?; + tag.frames[indices[0]] = tag.to_raw(new_frame)?; } _ => { |