UPNP: add size attribute
This commit is contained in:
parent
bf910d39f2
commit
ff7924ff78
4 changed files with 14 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<item id="{id}" parentID="{parent_id}" restricted="true">
|
||||
<dc:title>{title}</dc:title>
|
||||
<upnp:class>{upnp_class}</upnp:class>
|
||||
<res protocolInfo="http-get:*:{mime_type}:DLNA.ORG_OP=01">{url}</res>
|
||||
<res protocolInfo="http-get:*:{mime_type}:DLNA.ORG_OP=01" size="{size}">{url}</res>
|
||||
</item>
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ pub mod browse {
|
|||
pub title: String,
|
||||
pub mime_type: Option<mime_guess::Mime>,
|
||||
pub url: String,
|
||||
pub size: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
|
|
@ -103,7 +104,8 @@ pub mod browse {
|
|||
mime_type = mime,
|
||||
url = item.url,
|
||||
upnp_class = upnp_class,
|
||||
title = item.title
|
||||
title = item.title,
|
||||
size = item.size
|
||||
))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue