Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #195 from yawwwwwn/master
Browse files Browse the repository at this point in the history
Debug heartbeat
  • Loading branch information
yawwwwwn authored May 4, 2019
2 parents ed220f6 + 9667120 commit 6a38f36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,11 @@ async def get_TV_result(self, TV_roomid, TV_raffleid):

async def pcpost_heartbeat(self):
url = 'https://api.live.bilibili.com/User/userOnlineHeart'
response = await self.bili_section_post(url, headers=self.dic_bilibili['pcheaders'])
data = {
"csrf_token": self.dic_bilibili['csrf'],
"csrf": self.dic_bilibili['csrf']
}
response = await self.bili_section_post(url, data=data, headers=self.dic_bilibili['pcheaders'])
return response

# 发送app心跳包
Expand Down
1 change: 1 addition & 0 deletions printer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from colorama import init
from termcolor import *
import time
import os
import configloader


Expand Down

0 comments on commit 6a38f36

Please sign in to comment.