feat: add function to parse editor output in edit
This commit is contained in:
+2
-2
@@ -72,9 +72,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
}
|
||||
Commands::Edit { file } => {
|
||||
let path = PathBuf::from("/tmp/keks-sort-metadata");
|
||||
let tag = get_metadata(file);
|
||||
edit(path, tag)?;
|
||||
edit(file.to_path_buf(), tag)?;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,5 +90,6 @@ fn get_metadata<P: AsRef<OsStr>>(file_path: P) -> lofty::tag::Tag {
|
||||
Some(primary_tag) => primary_tag,
|
||||
None => tagged_file.first_tag().expect("ERROR: No tags found!"),
|
||||
};
|
||||
|
||||
tag.clone()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user