Send NOT_IMPLEMENTED on BrowseMetadata
This commit is contained in:
parent
2dedf26082
commit
398acfd3fa
1 changed files with 12 additions and 7 deletions
|
|
@ -65,13 +65,18 @@ async fn generate_content_directory_control_response(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
(
|
use crate::upnp_types::content_directory::request::BrowseFlag;
|
||||||
[(CONTENT_TYPE, CONTENT_TYPE_XML_UTF8)],
|
|
||||||
render_content_directory_browse(
|
match request.browse_flag {
|
||||||
state.provider.browse_direct_children(request.object_id),
|
BrowseFlag::BrowseDirectChildren => (
|
||||||
),
|
[(CONTENT_TYPE, CONTENT_TYPE_XML_UTF8)],
|
||||||
)
|
render_content_directory_browse(
|
||||||
.into_response()
|
state.provider.browse_direct_children(request.object_id),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.into_response(),
|
||||||
|
BrowseFlag::BrowseMetadata => StatusCode::NOT_IMPLEMENTED.into_response(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
SOAP_ACTION_GET_SYSTEM_UPDATE_ID => {
|
SOAP_ACTION_GET_SYSTEM_UPDATE_ID => {
|
||||||
let update_id = state.system_update_id.load(Ordering::Relaxed);
|
let update_id = state.system_update_id.load(Ordering::Relaxed);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue