UPNP: better ID handling + only ASCII in URLs

This commit is contained in:
Igor Katson 2024-09-02 11:41:33 +01:00
parent 65623f2074
commit 8d10a8a69c
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 30 additions and 28 deletions

View file

@ -62,6 +62,8 @@ pub mod browse {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Container {
pub id: usize,
// Parent id is None only for the root container.
// The only way to see the root container is BrowseMetadata on ObjectID=0
pub parent_id: Option<usize>,
pub children_count: Option<usize>,
pub title: String,