{"action":"created","issue":{"url":"https://api.github.com/repos/3Shain/BiliChat/issues/42","repository_url":"https://api.github.com/repos/3Shain/BiliChat","labels_url":"https://api.github.com/repos/3Shain/BiliChat/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/3Shain/BiliChat/issues/42/comments","events_url":"https://api.github.com/repos/3Shain/BiliChat/issues/42/events","html_url":"https://github.com/3Shain/BiliChat/pull/42","id":449854112,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgzMjk3ODkw","number":42,"title":"Fix Bilibili May29th danmu upgrade","user":{"login":"wudifeixue","id":7316929,"node_id":"MDQ6VXNlcjczMTY5Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/7316929?v=4","gravatar_id":"","url":"https://api.github.com/users/wudifeixue","html_url":"https://github.com/wudifeixue","followers_url":"https://api.github.com/users/wudifeixue/followers","following_url":"https://api.github.com/users/wudifeixue/following{/other_user}","gists_url":"https://api.github.com/users/wudifeixue/gists{/gist_id}","starred_url":"https://api.github.com/users/wudifeixue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wudifeixue/subscriptions","organizations_url":"https://api.github.com/users/wudifeixue/orgs","repos_url":"https://api.github.com/users/wudifeixue/repos","events_url":"https://api.github.com/users/wudifeixue/events{/privacy}","received_events_url":"https://api.github.com/users/wudifeixue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-05-29T14:48:47Z","updated_at":"2019-05-29T15:11:28Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/3Shain/BiliChat/pulls/42","html_url":"https://github.com/3Shain/BiliChat/pull/42","diff_url":"https://github.com/3Shain/BiliChat/pull/42.diff","patch_url":"https://github.com/3Shain/BiliChat/pull/42.patch"},"body":"This solves the related issue #41 \r\n\r\nThank you for @imlonghao and @simon300000 for providing the new API and related fix.\r\n\r\nWorking new fix shown below. \r\n\r\n![image](https://user-images.githubusercontent.com/7316929/58566803-7e240480-81ee-11e9-96ef-63be6d853a0e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/3Shain/BiliChat/issues/comments/496979349","html_url":"https://github.com/3Shain/BiliChat/pull/42#issuecomment-496979349","issue_url":"https://api.github.com/repos/3Shain/BiliChat/issues/42","id":496979349,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5Njk3OTM0OQ==","user":{"login":"zyzsdy","id":5925733,"node_id":"MDQ6VXNlcjU5MjU3MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/5925733?v=4","gravatar_id":"","url":"https://api.github.com/users/zyzsdy","html_url":"https://github.com/zyzsdy","followers_url":"https://api.github.com/users/zyzsdy/followers","following_url":"https://api.github.com/users/zyzsdy/following{/other_user}","gists_url":"https://api.github.com/users/zyzsdy/gists{/gist_id}","starred_url":"https://api.github.com/users/zyzsdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyzsdy/subscriptions","organizations_url":"https://api.github.com/users/zyzsdy/orgs","repos_url":"https://api.github.com/users/zyzsdy/repos","events_url":"https://api.github.com/users/zyzsdy/events{/privacy}","received_events_url":"https://api.github.com/users/zyzsdy/received_events","type":"User","site_admin":false},"created_at":"2019-05-29T15:11:28Z","updated_at":"2019-05-29T15:11:28Z","author_association":"NONE","body":"那个地方很可能不会永远是4:0:2:2:2:0\r\n\r\n刚才分析了一下更新后的前端代码，目前正在使用冒号分隔第4个数字进行判断，即这个2：   `4:0:2:【2】:2:0`\r\n\r\n目前看起来有0~3四种状态，分别对应发送到播放器中作为弹幕、发送到评论区作为评论、同时发送、都不发送。\r\n前端代码里出现两个flag，一个danmaku另一个sa，感觉就是控制这四种状态的。\r\n具体哪个是什么用的还没搞清，不过看名字是danmaku控制要不要成为弹幕。\r\n\r\n我的建议是改成`rawData.cmd.startsWith(\"DANMU_MSG\")`\r\n\r\n如[这里](https://github.com/Last-Order/YouTube-Live-Poll/commit/e1f8a564810742e4f60060e37414711acd580ef8)的使用例子"}}
{"actor":{"display_login":"zyzsdy"}}