mirror of
https://github.com/wbt5/real-url.git
synced 2025-06-16 15:59:57 +08:00
🎨 Improve 企鹅体育直播
-优化代码
This commit is contained in:
parent
c0018d0fb1
commit
ccc5598774
2
qie.py
2
qie.py
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user