FIX: Vods Showing Issue

This commit is contained in:
EvanLin3141
2025-03-01 01:25:17 +00:00
parent a101716a2d
commit 98198893db
3 changed files with 5 additions and 5 deletions

View File

@@ -162,6 +162,7 @@ def vods(username):
vods = get_user_vods(user_id)
return jsonify(vods)
@stream_bp.route('/vods/all')
def get_all_vods():
"""
Returns data of all VODs by all streamers in a JSON-compatible format
@@ -169,11 +170,10 @@ def get_all_vods():
with Database() as db:
vods = db.fetchall("SELECT * FROM vods")
print("Fetched VODs from DB:", vods) # ✅ Debugging line
print("Fetched VODs from DB:", vods)
return jsonify(vods)
# RTMP Server Routes
@stream_bp.route("/init_stream", methods=["POST"])
@@ -198,7 +198,7 @@ def init_stream():
# Create necessary directories
username = user_info["username"]
create_user_directories(username)
create_local_directories(username)
return redirect(f"/stream/{username}")
@@ -216,6 +216,7 @@ def publish_stream():
periodically update thumbnail
"""
try:
data = json.loads(request.form.get("data"))
except json.JSONDecodeError as ex: