Refactored handlers and UI to have a separate radarr module, and implemented movie search functionality for existing movies.

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent 3f378fb25a
commit a304367e0e
14 changed files with 1263 additions and 929 deletions
+6 -1
View File
@@ -29,6 +29,8 @@ pub struct RadarrData {
pub collection_movies: StatefulTable<CollectionMovie>,
pub main_tabs: TabState,
pub movie_info_tabs: TabState,
pub search: String,
pub is_searching: bool,
}
impl RadarrData {
@@ -70,11 +72,14 @@ impl Default for RadarrData {
movie_crew: StatefulTable::default(),
collections: StatefulTable::default(),
collection_movies: StatefulTable::default(),
search: String::default(),
is_searching: false,
main_tabs: TabState::new(vec![
TabRoute {
title: "Library".to_owned(),
route: ActiveRadarrBlock::Movies.into(),
help: "<↑↓> scroll table | <enter> movie details | ←→ change tab ".to_owned(),
help: "<↑↓> scroll table | <s> search | <enter> movie details | ←→ change tab "
.to_owned(),
},
TabRoute {
title: "Downloads".to_owned(),