emarsden / dash-mpd-rs

Rust library for parsing, serializing and downloading media content from a DASH MPD manifest.
MIT License
70 stars 22 forks source link

Add serde attribute rename="Location" to MPD.locations field #33

Closed nissy34 closed 9 months ago

nissy34 commented 9 months ago

https://github.com/emarsden/dash-mpd-rs/blob/0e543c4a0fba70a5d32bc5602b02922085fab913/src/lib.rs#L1657 The location tag in the dash schema is "Location" but in the MPD struct the field name is "locations".

The field is missing

 #[serde(rename = "Location", default)]
emarsden commented 9 months ago

Fixed, thanks!