1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-08-10 21:31:33 +08:00

Compare commits

...

6 Commits

Author SHA1 Message Date
wbt5
52329a5db7
🔀 Merge branch 2021-07-05 00:39:07 +08:00
wbt5
e6964984b0
💡 Update README.md
更新README
2021-07-05 00:33:53 +08:00
wbt5
5f7734d9c3
🐛 Fix 企鹅电竞弹幕 (#209,#140)
修复:企鹅电竞弹幕解包时,有一类消息type属性为空时导致判断出错的问题。
2021-07-05 00:33:29 +08:00
wbt5
d0b15785ea
💡 Update README.md
更新README
2021-07-05 00:18:05 +08:00
wbt5
9caecc1cf5
🐛 修复企鹅电竞弹幕
修复:企鹅电竞弹幕解包时,有一类消息type属性为空时导致判断出错的问题。
2021-07-05 00:12:48 +08:00
wbt5
750ce90471
🐛 Fix Acfun直播弹幕 (#217)
修复Acfun直播弹幕,proto中加入AcfunActionSignalJoinClub和CommonActionSignalRichText两个message。
2021-07-04 18:37:52 +08:00
4 changed files with 324 additions and 28 deletions

View File

@ -26,6 +26,8 @@
有直播平台失效或新增其他平台解析的,可发 [issue](https://github.com/wbt5/real-url/issues/new)。
## 更新
2021.7.4:art:更新哔哩哔哩直播源;:bug:修复Acfun直播弹幕:bug:修复企鹅电竞弹幕。
2021.6.20:sparkles:新增爱奇艺体育直播。
2021.6.13:bug:修复腾讯体育。

View File

@ -382,6 +382,28 @@ message CommonActionSignalUserFollowAuthor {
optional uint64 sendTimeMs = 2;
}
message CommonActionSignalRichText {
optional UserInfoSegment userInfo = 1;
optional PlainSegment plain = 2;
optional ImageSegment image = 3;
}
message UserInfoSegment {
optional ZtLiveUserInfo user = 1;
optional string color = 2;
}
message PlainSegment {
optional string text = 1;
optional string color = 2;
}
message ImageSegment {
optional ImageCdnNode cdnNode = 1;
optional string alternativeText = 2;
optional string alternativeColor = 3;
}
message CommonNotifySignalKickedOut {
optional string reason = 1;
}
@ -419,6 +441,12 @@ message AcfunStateSignalDisplayInfo {
optional string bananaCount = 1;
}
message AcfunActionSignalJoinClub {
optional UserInfo fansInfo = 1;
optional UserInfo uperInfo = 2;
optional uint64 joinTimeMs = 3;
}
message ZtLiveUserInfo {
optional uint64 userId = 1;
optional string nickname = 2;

File diff suppressed because one or more lines are too long

View File

@ -51,7 +51,8 @@ class eGame:
if body:
bin_datas = body['bin_data']
for bin_data in bin_datas:
if bin_data['type'] in (0, 3, 9):
# if bin_data['type'] in (0, 3, 9):
if bin_data.get('type', '') in (0, 3, 9):
msg['name'] = bin_data['nick']
msg['content'] = bin_data['content']
msg['msg_type'] = 'danmaku'
@ -230,6 +231,8 @@ class MessageDecode:
value, position = self.f9(i, s_position)
elif type == 12:
value, position = self.f12(i, s_position)
elif type == 13:
value, position = self.f13(i, s_position)
i = ''