mirror of
https://github.com/AynaLivePlayer/blivedm-go.git
synced 2025-12-06 19:32:49 +08:00
✨ add raw for Danmaku
This commit is contained in:
@@ -20,6 +20,7 @@ type (
|
|||||||
Emoticon *Emoticon
|
Emoticon *Emoticon
|
||||||
Type int
|
Type int
|
||||||
Timestamp int64
|
Timestamp int64
|
||||||
|
Raw string
|
||||||
}
|
}
|
||||||
|
|
||||||
Extra struct {
|
Extra struct {
|
||||||
@@ -85,4 +86,5 @@ func (d *Danmaku) Parse(data []byte) {
|
|||||||
d.Emoticon = emo
|
d.Emoticon = emo
|
||||||
d.Type = int(info.Get("0.12").Int())
|
d.Type = int(info.Get("0.12").Int())
|
||||||
d.Timestamp = info.Get("0.4").Int()
|
d.Timestamp = info.Get("0.4").Int()
|
||||||
|
d.Raw = sb
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user