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