making a subtext that uses the path of the background
This commit is contained in:
parent
d29e3b0dff
commit
a8f7651164
6 changed files with 55 additions and 2 deletions
|
@ -45,6 +45,16 @@ impl Content for Video {
|
|||
fn to_service_item(&self) -> super::service_items::ServiceItem {
|
||||
self.into()
|
||||
}
|
||||
|
||||
fn background(&self) -> Option<Background> {
|
||||
if let Ok(background) =
|
||||
Background::try_from(self.path.clone())
|
||||
{
|
||||
Some(background)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Value> for Video {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue