|
|
|
@ -135,15 +135,18 @@ impl fmt::Display for HentaiInfo {
|
|
|
|
|
}
|
|
|
|
|
let mut duration = String::new();
|
|
|
|
|
if hours > 0 {
|
|
|
|
|
duration.push_str(&format!("{}:", hours));
|
|
|
|
|
duration.push_str(&format!("{:02}:", hours));
|
|
|
|
|
}
|
|
|
|
|
if minutes > 0 {
|
|
|
|
|
duration.push_str(&format!("{}:", minutes));
|
|
|
|
|
duration.push_str(&format!("{:02}:", minutes));
|
|
|
|
|
}
|
|
|
|
|
duration.push_str(&seconds.to_string());
|
|
|
|
|
text.push_str(&format!("Duration: {}\n", &duration));
|
|
|
|
|
text.push_str(&format!("Duration: {}{:02}\n", &duration, seconds));
|
|
|
|
|
}
|
|
|
|
|
formatter.write_str(&format!("{}Tags: {}\nDescription: {}", &text, video.hentai_tags.iter().map(|i| i.text.as_str()).collect::<Vec<_>>().join(", "), &video.description))
|
|
|
|
|
text.push_str(&format!("Tags: {}", video.hentai_tags.iter().map(|i| i.text.as_str()).collect::<Vec<_>>().join(", ")));
|
|
|
|
|
if !video.description.is_empty() {
|
|
|
|
|
text.push_str(&format!("\nDescription: {}", &video.description));
|
|
|
|
|
}
|
|
|
|
|
formatter.write_str(&text)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|