From 2d9bca9a1eb75771a308668e2b365e82e5039e5a Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 17 Jan 2020 10:50:47 +0100 Subject: Partial support for ID3v2.4 --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') 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)?; } _ => { -- cgit v1.2.3