Fixed movie display bug
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
use std::ops::Deref;
|
|
||||||
|
|
||||||
use anyhow::anyhow;
|
use anyhow::anyhow;
|
||||||
use indoc::formatdoc;
|
use indoc::formatdoc;
|
||||||
use log::{debug, error};
|
use log::{debug, error};
|
||||||
@@ -197,7 +195,6 @@ impl<'a> Network<'a> {
|
|||||||
|
|
||||||
let status = get_movie_status(has_file, &app.data.radarr_data.downloads.items, id);
|
let status = get_movie_status(has_file, &app.data.radarr_data.downloads.items, id);
|
||||||
let collection = collection.unwrap_or_default();
|
let collection = collection.unwrap_or_default();
|
||||||
debug!("title: {:?}", title);
|
|
||||||
|
|
||||||
app.data.radarr_data.movie_details = ScrollableText::with_string(formatdoc!(
|
app.data.radarr_data.movie_details = ScrollableText::with_string(formatdoc!(
|
||||||
"Title: {}
|
"Title: {}
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ fn draw_movie_details<B: Backend>(
|
|||||||
let split = line.split(':').collect::<Vec<&str>>();
|
let split = line.split(':').collect::<Vec<&str>>();
|
||||||
let title = format!("{}:", split[0]);
|
let title = format!("{}:", split[0]);
|
||||||
|
|
||||||
spans_info_default(title, split[1].to_owned())
|
spans_info_default(title, split[1..].join(":"))
|
||||||
})
|
})
|
||||||
.collect::<Vec<Spans>>(),
|
.collect::<Vec<Spans>>(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user