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

修复 西瓜直播

This commit is contained in:
wbt5 2020-10-17 09:17:48 +08:00
parent 1b43b716f4
commit 01cacfc371

View File

@ -14,7 +14,7 @@ class IXiGua:
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:83.0) Gecko/20100101 Firefox/83.0'
}
room_url = self.rid
room_url = 'https://live.ixigua.com/' + str(self.rid)
response = requests.get(url=room_url, headers=headers).text
real_url = re.findall(r'playInfo":([\s\S]*?),"authStatus', response)[0]
real_url = re.sub(r'\\u002F', '/', real_url)