1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-06-17 08:25:25 +08:00

更新一直播

This commit is contained in:
wbt5 2020-02-26 13:26:18 +08:00
parent f750d711f2
commit 906ce21a74
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
目前有21个直播平台斗鱼直播、虎牙直播、哔哩哔哩直播、战旗直播、网易CC直播、火猫直播、企鹅电竞、YY直播、一直播、快手直播、花椒直播、映客直播、西瓜直播、触手直播、NOW直播、抖音直播爱奇艺直播、酷狗直播、龙珠直播、PPS奇秀直播、六间房。
> 2020.02.26: 更新一直播。
> 2020.01.18:更新抖音直播。
> 2020.01.10新增酷狗直播、龙珠直播、PPS奇秀直播、六间房。

View File

@ -7,7 +7,7 @@ import re
def get_real_url(room_url):
try:
scid = re.findall(r'/l/(\w*).html', room_url)[0]
scid = re.findall(r'/l/(\S*).html', room_url)[0]
flvurl = 'http://alcdn.f01.xiaoka.tv/live/{}.flv'.format(scid)
m3u8url = 'http://al01.alcdn.hls.xiaoka.tv/live/{}.m3u8'.format(scid)
rtmpurl = 'rtmp://alcdn.r01.xiaoka.tv/live/live/{}'.format(scid)
@ -23,7 +23,7 @@ def get_real_url(room_url):
def get_status(room_url):
try:
scid = re.findall(r'/l/(\w*).html', room_url)[0]
scid = re.findall(r'/l/(\S*).html', room_url)[0]
response = requests.get(
url='https://m.yizhibo.com/www/live/get_live_video?scid=' + str(scid)).json()
status_code = response.get('data').get('info').get('status')