mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-13 05:12:27 +00:00
Fix playlist descriptions and pirate bug
This commit is contained in:
parent
d192060ef4
commit
f46bd4fc87
2 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ public class CollectionController : ControllerBase
|
|||
this.Request.Body.Position = 0;
|
||||
string bodyString = await new StreamReader(this.Request.Body).ReadToEndAsync();
|
||||
|
||||
string rootElement = bodyString.Contains("levels") ? "levels" : "playlist";
|
||||
string rootElement = bodyString.StartsWith("<playlist>") ? "playlist" : "levels";
|
||||
XmlSerializer serializer = new(typeof(Playlist), new XmlRootAttribute(rootElement));
|
||||
Playlist? playlist = (Playlist?)serializer.Deserialize(new StringReader(bodyString));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue