Mostly completed tags implementation; still need to add the UI option for the Add Movie popup, and I still need to fix the REALLY FAST horizontal scrolling issue (I'm thinking just %2 everything to slow it down). Oh, and also need to convert the quality profile Hashmap into a BiMap

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 03928778f5
commit a23fc84d5b
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -288,6 +288,10 @@ mod tests {
sync_network_rx.recv().await.unwrap(),
RadarrEvent::GetQualityProfiles.into()
);
assert_eq!(
sync_network_rx.recv().await.unwrap(),
RadarrEvent::GetTags.into()
);
assert_eq!(
sync_network_rx.recv().await.unwrap(),
RadarrEvent::GetRootFolders.into()
+3 -3
View File
@@ -208,13 +208,13 @@ impl<'a> Network<'a> {
async fn search_movie(&self) {
info!("Searching for specific Radarr movie");
let search_string = &self.app.lock().await.data.radarr_data.search.text.clone();
let search_string = self.app.lock().await.data.radarr_data.search.text.clone();
let request_props = self
.radarr_request_props_from(
format!(
"{}?term={}",
RadarrEvent::SearchNewMovie.resource(),
encode(search_string)
encode(&search_string)
)
.as_str(),
RequestMethod::Get,
@@ -910,7 +910,7 @@ impl<'a> Network<'a> {
async fn extract_and_add_tag_ids_vec(&self) -> Vec<u64> {
let tags_map = self.app.lock().await.data.radarr_data.tags_map.clone();
let edit_tags = &self
let edit_tags = self
.app
.lock()
.await