FIX: fixed issues with streaming not working

This commit is contained in:
white
2025-02-26 13:13:15 +00:00
parent c56c5ffa41
commit de68651685
2 changed files with 12 additions and 3 deletions

View File

@@ -2,8 +2,8 @@ import React from "react";
import ThemeSetting from "./ThemeSetting";
import { useTheme } from "../../context/ThemeContext";
import { useQuickSettings } from "../../context/QuickSettingsContext";
import Screenshot from "../functionality/Screenshot";
import BrightnessControl from "../functionality/BrightnessControl";
import Screenshot from "../Functionality/Screenshot";
import BrightnessControl from "../Functionality/BrightnessControl";
const QuickSettings: React.FC = () => {
const { theme } = useTheme();

View File

@@ -8,6 +8,7 @@ from datetime import datetime
from celery_tasks import update_thumbnail, combine_ts_stream
from dateutil import parser
from utils.path_manager import PathManager
import json
stream_bp = Blueprint("stream", __name__)
@@ -203,7 +204,15 @@ def publish_stream():
set user as streaming
periodically update thumbnail
"""
data = request.form.get("data")
try:
data = json.loads(request.form.get("data"))
except json.JSONDecodeError as ex:
print(f"Error: {ex}")
except KeyError as ex:
print(f"Error: {ex}")
with Database() as db:
user_info = db.fetchone("""SELECT user_id, username, current_stream_title,