Updated Ratatui, created custom deserialization logic for i64s to make life easier, and used string interpolation where possible to reduce the lines needed to write log messages or create formatted text
This commit is contained in:
1 parent
e13d1ece58
commit
b16a58deae
43 files changed
+426
-536
No files matched your search
@@ -58,7 +58,7 @@ impl From<&RadarrData<'_>> for EditMovieModal {
|
||||
.map(|tag_id| {
|
||||
radarr_data
|
||||
.tags_map
|
||||
.get_by_left(&tag_id.as_u64().unwrap())
|
||||
.get_by_left(&tag_id.as_i64().unwrap())
|
||||
.unwrap()
|
||||
.clone()
|
||||
})
|
||||
@@ -89,7 +89,7 @@ impl From<&RadarrData<'_>> for EditMovieModal {
|
||||
.set_items(quality_profile_names);
|
||||
let quality_profile_name = radarr_data
|
||||
.quality_profile_map
|
||||
.get_by_left(&quality_profile_id.as_u64().unwrap())
|
||||
.get_by_left(quality_profile_id)
|
||||
.unwrap();
|
||||
let quality_profile_index = edit_movie_modal
|
||||
.quality_profile_list
|
||||
@@ -193,7 +193,7 @@ impl From<&RadarrData<'_>> for EditCollectionModal {
|
||||
|
||||
let quality_profile_name = radarr_data
|
||||
.quality_profile_map
|
||||
.get_by_left(&quality_profile_id.as_u64().unwrap())
|
||||
.get_by_left(quality_profile_id)
|
||||
.unwrap();
|
||||
let quality_profile_index = edit_collection_modal
|
||||
.quality_profile_list
|
||||
|
||||
Reference in new issue
Block a user