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-21 14:48:42 +08:00
parent c0018d0fb1
commit ccc5598774
No known key found for this signature in database
GPG Key ID: 92D5C42E815A2BD6

2
qie.py
View File

@ -11,7 +11,7 @@ class ESport:
def get_real_url(self):
with requests.Session() as s:
res = s.get('https://m.live.qq.com/' + str(self.rid))
res = s.get(f'https://m.live.qq.com/{self.rid}')
show_status = re.search(r'"show_status":"(\d)"', res.text)
if show_status:
if show_status.group(1) == '1':