Skip to content

Commit

Permalink
feat: support 'COMBINE_SMALL_CLASS_MODE'
Browse files Browse the repository at this point in the history
  • Loading branch information
itsHenry35 committed Sep 16, 2024
1 parent 3079db1 commit 1026525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/download2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
Expand Down

0 comments on commit 1026525

Please sign in to comment.