fix: Improve fault tolerance for tag associations in Radarr and Sonarr

This commit is contained in:
2025-05-18 13:49:52 -06:00
parent f09a2efa5e
commit c133a4ecd2
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -112,6 +112,7 @@ fn draw_library(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
.get_by_left(&series.language_profile_id)
.unwrap()
.to_owned();
let empty_tag = String::new();
let tags = if !series.tags.is_empty() {
series
.tags
@@ -119,7 +120,7 @@ fn draw_library(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
.map(|tag_id| {
tags_map
.get_by_left(&tag_id.as_i64().unwrap())
.unwrap()
.unwrap_or(&empty_tag)
.clone()
})
.collect::<Vec<String>>()