From 040a1b204cf5729962bf91033679907ed888f343 Mon Sep 17 00:00:00 2001 From: Xingyu Xie Date: Mon, 25 Jul 2022 00:41:33 +0800 Subject: [PATCH] update huya according to issue #360 --- huya.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/huya.py b/huya.py index 011cc54..a42cc65 100644 --- a/huya.py +++ b/huya.py @@ -54,5 +54,6 @@ def get_real_url(room_id): rid = input('输入虎牙直播房间号:\n') real_url = get_real_url(rid) +real_url = re.findall(r'^(.*?)&ctype',real_url)[0] print('该直播间源地址为:') -print(real_url) \ No newline at end of file +print(real_url)