container parent default -1
This commit is contained in:
parent
2d4b467055
commit
8ab3d4d428
2 changed files with 4 additions and 4 deletions
|
|
@ -70,7 +70,7 @@ pub mod browse {
|
|||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct Item {
|
||||
pub id: usize,
|
||||
pub parent_id: Option<usize>,
|
||||
pub parent_id: Option<isize>,
|
||||
pub title: String,
|
||||
pub mime_type: Option<mime_guess::Mime>,
|
||||
pub url: String,
|
||||
|
|
@ -97,7 +97,7 @@ pub mod browse {
|
|||
"../resources/templates/content_directory/control/browse/item.tmpl.xml"
|
||||
),
|
||||
id = item.id,
|
||||
parent_id = item.parent_id.unwrap_or(0),
|
||||
parent_id = item.parent_id.unwrap_or(-1),
|
||||
mime_type = mime,
|
||||
url = item.url,
|
||||
upnp_class = upnp_class,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue