mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-27 04:38:35 -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 => {}
|
None => {}
|
||||||
}
|
}
|
||||||
|
println!(" Processing {}...", file_base);
|
||||||
|
|
||||||
// Parse the filename for metadata
|
// Parse the filename for metadata
|
||||||
let metadata = Metadata::from(file_base.as_str()).expect(" Could not parse filename!");
|
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() {
|
if let Ok(search_results) = search.execute() {
|
||||||
results = search_results.results;
|
results = search_results.results;
|
||||||
} else {
|
} 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();
|
let mut movie_list: Vec<MovieEntry> = Vec::new();
|
||||||
|
@ -73,7 +74,7 @@ pub fn process_file(
|
||||||
|
|
||||||
// If nothing is found, skip
|
// If nothing is found, skip
|
||||||
if movie_list.len() == 0 {
|
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);
|
return ("".to_string(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +100,8 @@ pub fn process_file(
|
||||||
extension = format!("{}.{}", filename_parts[1], extension);
|
extension = format!("{}.{}", filename_parts[1], extension);
|
||||||
} else {
|
} else {
|
||||||
let lang_list = Language::generate_list();
|
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()
|
.prompt()
|
||||||
.expect(" Invalid choice!");
|
.expect(" Invalid choice!");
|
||||||
if lang_choice.short != "none".to_string() {
|
if lang_choice.short != "none".to_string() {
|
||||||
|
|
Loading…
Reference in a new issue