mirror of
https://github.com/wbt5/real-url.git
synced 2025-12-16 23:10:29 +08:00
修复斗鱼直播源
This commit is contained in:
parent
17a1f788cb
commit
ca1da4aeb7
4
douyu.py
4
douyu.py
@ -101,8 +101,8 @@ def get_sign_url(post_v, rid, tt, ub9):
|
||||
if 'mix=1' in real_url:
|
||||
result1 = mix_room(rid)
|
||||
else:
|
||||
pattern1 = r'live/(\d{1,8}[0-9a-zA-Z]+)_?[\d]{0,4}/playlist'
|
||||
result1 = re.findall(pattern1, real_url, re.I)[0]
|
||||
pattern = r'/(\d{1,8}[0-9a-zA-Z]+)_?[\d]{0,4}.m3u8'
|
||||
result1 = re.search(pattern, real_url).group(1)
|
||||
else:
|
||||
result1 = 0
|
||||
return result1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user