Fixed another bug with properly showing the right colors for downloading files. Accidentally named the download field id instead of movie_id

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 2870a45ee6
commit 74502f5462
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "managarr" name = "managarr"
version = "0.1.10" version = "0.1.11"
authors = ["Alex Clarke <alex.j.tusa@gmail.com>"] authors = ["Alex Clarke <alex.j.tusa@gmail.com>"]
description = "A TUI for managing *arr servers" description = "A TUI for managing *arr servers"
edition = "2021" edition = "2021"
+2
View File
@@ -154,6 +154,8 @@ pub struct DownloadRecord {
pub title: String, pub title: String,
pub status: String, pub status: String,
#[derivative(Default(value = "Number::from(0)"))] #[derivative(Default(value = "Number::from(0)"))]
pub id: Number,
#[derivative(Default(value = "Number::from(0)"))]
pub movie_id: Number, pub movie_id: Number,
#[derivative(Default(value = "Number::from(0)"))] #[derivative(Default(value = "Number::from(0)"))]
pub size: Number, pub size: Number,
+3 -1
View File
@@ -648,7 +648,7 @@ impl<'a> Network<'a> {
.radarr_data .radarr_data
.downloads .downloads
.current_selection() .current_selection()
.movie_id .id
.as_u64() .as_u64()
.unwrap(); .unwrap();
@@ -1630,6 +1630,7 @@ mod test {
"title": "Test Download Title", "title": "Test Download Title",
"status": "downloading", "status": "downloading",
"id": 1, "id": 1,
"movieId": 1,
"size": 3543348019u64, "size": 3543348019u64,
"sizeleft": 1771674009, "sizeleft": 1771674009,
"outputPath": "/nfs/movies/Test", "outputPath": "/nfs/movies/Test",
@@ -2238,6 +2239,7 @@ mod test {
DownloadRecord { DownloadRecord {
title: "Test Download Title".to_owned(), title: "Test Download Title".to_owned(),
status: "downloading".to_owned(), status: "downloading".to_owned(),
id: Number::from(1),
movie_id: Number::from(1), movie_id: Number::from(1),
size: Number::from(3543348019u64), size: Number::from(3543348019u64),
sizeleft: Number::from(1771674009u64), sizeleft: Number::from(1771674009u64),