mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-26 12:18:37 -06:00
Visual improvements
This commit is contained in:
parent
c52643033f
commit
2d6e063a97
1 changed files with 15 additions and 13 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue