Visual improvements

This commit is contained in:
Sayantan Santra 2022-12-10 22:23:44 -06:00
parent c52643033f
commit 2d6e063a97

View file

@ -31,6 +31,7 @@ pub fn process_file(
}
None => {}
}
println!(" Processing {}...", file_base);
// Parse the filename for metadata
let metadata = Metadata::from(file_base.as_str()).expect(" Could not parse filename!");
@ -47,7 +48,7 @@ pub fn process_file(
if let Ok(search_results) = search.execute() {
results = search_results.results;
} else {
eprintln!("There was an error while searching {}!", filename);
eprintln!(" There was an error while searching {}!", file_base);
}
let mut movie_list: Vec<MovieEntry> = Vec::new();
@ -73,7 +74,7 @@ pub fn process_file(
// If nothing is found, skip
if movie_list.len() == 0 {
eprintln!("Could not find any entries matching {}!", filename);
eprintln!(" Could not find any entries matching {}!", file_base);
return ("".to_string(), true);
}
@ -99,7 +100,8 @@ pub fn process_file(
extension = format!("{}.{}", filename_parts[1], extension);
} else {
let lang_list = Language::generate_list();
let lang_choice = Select::new("Choose the language for the subtitle file:", lang_list)
let lang_choice =
Select::new(" Choose the language for the subtitle file:", lang_list)
.prompt()
.expect(" Invalid choice!");
if lang_choice.short != "none".to_string() {