From 1026525c7722c2be08862301beec8b4896b85b5a Mon Sep 17 00:00:00 2001 From: Henry <2671230065@qq.com> Date: Mon, 16 Sep 2024 21:04:05 +0800 Subject: [PATCH] feat: support 'COMBINE_SMALL_CLASS_MODE' --- gui/download2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/download2.py b/gui/download2.py index f58cc9b..aaaffc7 100644 --- a/gui/download2.py +++ b/gui/download2.py @@ -82,7 +82,7 @@ def get_download_url(lecture, user_id, access_token): video_url = "" error_message = "" success = 'False' - if live_type == 'SMALL_GROUPS_V2_MODE': + if live_type == 'SMALL_GROUPS_V2_MODE' or live_type == 'COMBINE_SMALL_CLASS_MODE': url = 'https://classroom-api-online.saasp.vdyoo.com/playback/v1/video/init' response = requests.get(url, headers=headers) video_data = response.json() @@ -107,6 +107,7 @@ def get_download_url(lecture, user_id, access_token): success = 'False' if success == 'False' and error_message == "": error_message = "未找到回放" + print(live_type) return { "url": video_url, "success": success,