FIX: fixed issues with streaming not working
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user