summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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)?;
}
_ => {