1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-08-13 23:31:38 +08:00

Compare commits

..

No commits in common. "52329a5db7172f14f37287201b666d41b77dafd7" and "c9858a81a856a5659dac9cfb760261fda4125086" have entirely different histories.

4 changed files with 28 additions and 324 deletions

View File

@ -26,8 +26,6 @@
有直播平台失效或新增其他平台解析的,可发 [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,28 +382,6 @@ 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;
}
@ -441,12 +419,6 @@ 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,8 +51,7 @@ 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.get('type', '') in (0, 3, 9):
if bin_data['type'] in (0, 3, 9):
msg['name'] = bin_data['nick']
msg['content'] = bin_data['content']
msg['msg_type'] = 'danmaku'
@ -231,8 +230,6 @@ 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 = ''