mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
Core: Remove invalid character in room title before writing to xml file
This commit is contained in:
parent
a043ddc59f
commit
9337bbe931
|
@ -222,10 +222,10 @@ namespace BililiveRecorder.Core.Danmaku
|
|||
writer.WriteStartElement("BililiveRecorderRecordInfo");
|
||||
writer.WriteAttributeString("roomid", room.RoomConfig.RoomId.ToString());
|
||||
writer.WriteAttributeString("shortid", room.ShortId.ToString());
|
||||
writer.WriteAttributeString("name", room.Name);
|
||||
writer.WriteAttributeString("title", room.Title);
|
||||
writer.WriteAttributeString("areanameparent", room.AreaNameParent);
|
||||
writer.WriteAttributeString("areanamechild", room.AreaNameChild);
|
||||
writer.WriteAttributeString("name", RemoveInvalidXMLChars(room.Name));
|
||||
writer.WriteAttributeString("title", RemoveInvalidXMLChars(room.Title));
|
||||
writer.WriteAttributeString("areanameparent", RemoveInvalidXMLChars(room.AreaNameParent));
|
||||
writer.WriteAttributeString("areanamechild", RemoveInvalidXMLChars(room.AreaNameChild));
|
||||
writer.WriteAttributeString("start_time", DateTimeOffset.Now.ToString("O"));
|
||||
writer.WriteEndElement();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user