FEAT: VoDs accessible from browser, named as {vod_id}.mp4

This commit is contained in:
2025-02-12 14:01:38 +00:00
parent 571cb9c0f5
commit 45a586748d
4 changed files with 17 additions and 5 deletions

View File

@@ -237,6 +237,8 @@ def end_stream():
stream_length,
0))
vod_id = db.get_last_insert_id()
# Set user as not streaming
db.execute("""UPDATE users
SET is_live = 0
@@ -245,6 +247,6 @@ def end_stream():
# Get username
username = user_info["username"]
combine_ts_stream.delay(path_manager.get_stream_path(username), path_manager.get_vods_path(username))
combine_ts_stream.delay(path_manager.get_stream_path(username), path_manager.get_vods_path(username), vod_id)
return "Stream ended", 200