add raw for Danmaku

This commit is contained in:
Akiba
2022-04-29 21:40:04 +08:00
parent b8e1f491aa
commit 4c6907d175

View File

@@ -20,6 +20,7 @@ type (
Emoticon *Emoticon
Type int
Timestamp int64
Raw string
}
Extra struct {
@@ -85,4 +86,5 @@ func (d *Danmaku) Parse(data []byte) {
d.Emoticon = emo
d.Type = int(info.Get("0.12").Int())
d.Timestamp = info.Get("0.4").Int()
d.Raw = sb
}