Skip to content

Commit 8a67666

Browse files
committed
⚡ Improve 新浪疯播直播
-优化代码
1 parent 5bcf800 commit 8a67666

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fengbolive.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def __init__(self, rid):
1515

1616
def get_real_url(self):
1717
with requests.Session() as s:
18-
res = s.get('https://external.fengbolive.com/cgi-bin/get_anchor_info_proxy.fcgi?anchorid=' + str(self.rid)).json()
18+
res = s.get(f'https://external.fengbolive.com/cgi-bin/get_anchor_info_proxy.fcgi?anchorid={self.rid}')
19+
res = res.json()
1920
if res['ret'] == 1:
2021
info = res['info']
2122
info = unquote(info, 'utf-8')

0 commit comments

Comments
 (0)