From 7153cf3e4288d4395c984e6648df9bafdc4e833f Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 29 Jul 2023 14:30:30 +0800 Subject: Use Brotli to follow the latest Bilibili web implementation --- danmaku/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'danmaku/client.go') diff --git a/danmaku/client.go b/danmaku/client.go index 3862154..a94afbf 100644 --- a/danmaku/client.go +++ b/danmaku/client.go @@ -88,7 +88,7 @@ func (d *DanmakuClient) Disconnect() error { } func (d *DanmakuClient) Authenticate(roomId types.RoomId, authKey string) error { - pkg := dmpkg.NewAuth(dmpkg.ProtoPlainJson, roomId, authKey) + pkg := dmpkg.NewAuth(dmpkg.ProtoBrotli, roomId, authKey) data, err := pkg.Marshal() if err != nil { return fmt.Errorf("exchange marshal failed: %w", err) -- cgit v1.2.3