1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-06-16 15:59:57 +08:00

Improve 新浪疯播直播

-优化代码
This commit is contained in:
wbt5 2021-11-13 22:03:59 +08:00
parent 5bcf800f6e
commit 8a6766681b
No known key found for this signature in database
GPG Key ID: 92D5C42E815A2BD6

View File

@ -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')