mirror of
https://github.com/wbt5/real-url.git
synced 2025-06-17 00:09:58 +08:00
⚡ Improve 新浪疯播直播
-优化代码
This commit is contained in:
parent
5bcf800f6e
commit
8a6766681b
@ -15,7 +15,8 @@ class FengBo:
|
||||
|
||||
def get_real_url(self):
|
||||
with requests.Session() as s:
|
||||
res = s.get('https://external.fengbolive.com/cgi-bin/get_anchor_info_proxy.fcgi?anchorid=' + str(self.rid)).json()
|
||||
res = s.get(f'https://external.fengbolive.com/cgi-bin/get_anchor_info_proxy.fcgi?anchorid={self.rid}')
|
||||
res = res.json()
|
||||
if res['ret'] == 1:
|
||||
info = res['info']
|
||||
info = unquote(info, 'utf-8')
|
||||
|
Loading…
x
Reference in New Issue
Block a user