UPDATE: Changed stream access URL to use streamer_name instead of streamer_key, to hide streamer key.

This commit is contained in:
2025-02-26 15:07:09 +00:00
parent c98f892e3e
commit cefd88f525
5 changed files with 23 additions and 22 deletions

View File

@@ -185,11 +185,11 @@ def init_stream():
print("Unauthorized - Invalid stream key", flush=True)
return "Unauthorized - Invalid stream key", 403
# Create necessary directories
username = user_info["username"]
create_local_directories(username)
# Create necessary directories
username = user_info["username"]
create_local_directories(username)
return "OK", 200
return redirect(f"/stream/{username}")
@stream_bp.route("/publish_stream", methods=["POST"])
@@ -243,7 +243,7 @@ def publish_stream():
# Update thumbnail periodically
update_thumbnail.delay(user_id,
path_manager.get_stream_file_path(username),
path_manager.get_thumbnail_file_path(username),
path_manager.get_current_stream_thumbnail_file_path(username),
THUMBNAIL_GENERATION_INTERVAL)
return "OK", 200