diff --git a/src/lib.rs b/src/lib.rs index d55bcf7..94fa63d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -144,8 +144,8 @@ pub struct VideoFormat { impl Default for VideoFormat { fn default() -> Self { VideoFormat { - short_name: "UNAMED_SHORT".to_string(), - long_name: "UNAMED_LONG".to_string(), + short_name: "UNNAMED_SHORT".to_string(), + long_name: "UNNAMED_LONG".to_string(), height: 0, width: 0, title: None, @@ -465,7 +465,6 @@ impl MovieLibrary { let f = File::open(&path).context(format!("open {}", path.display()))?; let r = BufReader::new(f); - // Read the JSON contents of the file as an instance of `User`. Ok(serde_json::from_reader(r) .context(format!("serde_json::from_reader {}", path.display()))?) } diff --git a/src/main.rs b/src/main.rs index 11243a3..3d140b3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ use std::time::Duration; use human_format::Formatter; use human_format::Scales; +use humantime; use log::info; use regex::Regex; use structopt::StructOpt;