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:
@@ -154,6 +154,8 @@ pub struct DownloadRecord {
|
||||
pub title: String,
|
||||
pub status: String,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub id: Number,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub movie_id: Number,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub size: Number,
|
||||
|
||||
@@ -648,7 +648,7 @@ impl<'a> Network<'a> {
|
||||
.radarr_data
|
||||
.downloads
|
||||
.current_selection()
|
||||
.movie_id
|
||||
.id
|
||||
.as_u64()
|
||||
.unwrap();
|
||||
|
||||
@@ -1630,6 +1630,7 @@ mod test {
|
||||
"title": "Test Download Title",
|
||||
"status": "downloading",
|
||||
"id": 1,
|
||||
"movieId": 1,
|
||||
"size": 3543348019u64,
|
||||
"sizeleft": 1771674009,
|
||||
"outputPath": "/nfs/movies/Test",
|
||||
@@ -2238,6 +2239,7 @@ mod test {
|
||||
DownloadRecord {
|
||||
title: "Test Download Title".to_owned(),
|
||||
status: "downloading".to_owned(),
|
||||
id: Number::from(1),
|
||||
movie_id: Number::from(1),
|
||||
size: Number::from(3543348019u64),
|
||||
sizeleft: Number::from(1771674009u64),
|
||||
|
||||
Reference in New Issue
Block a user