fix: Marked the Season.statistics field as Option so that a panic does not happen for outdated Sonarr data. This resolves #35
This commit is contained in:
@@ -247,7 +247,11 @@ fn draw_seasons_table(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
|
||||
size_on_disk,
|
||||
next_airing,
|
||||
..
|
||||
} = statistics;
|
||||
} = if let Some(stats) = statistics {
|
||||
stats
|
||||
} else {
|
||||
&SeasonStatistics::default()
|
||||
};
|
||||
let season_monitored = if season.monitored { "🏷" } else { "" };
|
||||
let size = convert_to_gb(*size_on_disk);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user