This commit is contained in:
2025-11-15 15:22:14 +03:00
parent 5f9ff8bd0d
commit 80a35988e0

View File

@@ -3086,14 +3086,14 @@ async def vmix_project():
nas_port="443",
path=SYNO_PATH_VMIX,
)
system_name = platform.system()
if system_name == "Windows":
pass
else:
# ❗ На Linux/Synology/Docker — заменяем URL
edited_vmix = change_vmix_datasource_urls(
vmix_bio, f"https://{MYHOST}.tvstart.ru"
)
# system_name = platform.system()
# if system_name == "Windows":
# pass
# else:
# ❗ На Linux/Synology/Docker — заменяем URL
edited_vmix = change_vmix_datasource_urls(
vmix_bio, f"https://{MYHOST}.tvstart.ru"
)
# 2. гарантируем, что это bytes
if isinstance(edited_vmix, str):
edited_vmix = edited_vmix.encode("utf-8")
@@ -3201,7 +3201,7 @@ async def games_online():
"score2": (
game["score2"] if any((s or 0) > 0 for s in scores) else ""
),
"period": game["period"] if "period" in game else "",
"period": game["period"] if "period" in game and any((s or 0) > 0 for s in scores) else "",
"defaultZoneTime": game["defaultZoneTime"],
"team1": item["team1"]["name"],
"team2": item["team2"]["name"],
@@ -3214,7 +3214,7 @@ async def games_online():
),
"mask2": (
"#FFFFFF00"
if (game["period"] if "period" in game else "") == ""
if (game["period"] if "period" in game and any((s or 0) > 0 for s in scores) else "") == ""
else "#FFFFFF"
),
"mask3": (