1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-07-28 03:20:31 +08:00

更新抖音直播

This commit is contained in:
wbt5 2020-01-18 15:48:15 +08:00
parent 0480b60aff
commit f750d711f2
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -10,7 +10,7 @@ import re
def get_real_url(rid):
try:
if 'v.douyin.com' in rid:
room_id = re.findall(r'live/(\d+)\?utm', requests.get(url=rid).url)[0]
room_id = re.findall(r'(\d{19})', requests.get(url=rid).url)[0]
else:
room_id = rid
room_url = 'https://webcast-hl.amemv.com/webcast/room/reflow/info/?room_id={}&live_id=1'.format(room_id)