mirror of
https://github.com/wbt5/real-url.git
synced 2025-08-02 23:55:46 +08:00
更新映客弹幕
This commit is contained in:
parent
afcd4d3be8
commit
0235aa6f77
@ -5,6 +5,7 @@ import json
|
|||||||
|
|
||||||
|
|
||||||
class Inke:
|
class Inke:
|
||||||
|
heartbeat = None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
async def get_ws_info(url):
|
async def get_ws_info(url):
|
||||||
@ -16,7 +17,7 @@ class Inke:
|
|||||||
async with session.get(cr) as resp:
|
async with session.get(cr) as resp:
|
||||||
res = await resp.text()
|
res = await resp.text()
|
||||||
wss_url = json.loads(res).get('url')
|
wss_url = json.loads(res).get('url')
|
||||||
return wss_url
|
return wss_url, None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def decode_msg(data):
|
def decode_msg(data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user