From da7e7ad833adb1dada0869ec4dd9b05db966b709 Mon Sep 17 00:00:00 2001 From: Alexey Barabanov Date: Thu, 20 Nov 2025 13:04:57 +0300 Subject: [PATCH] Add get_fqdn function --- get_data.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/get_data.py b/get_data.py index 8245b56..a538fe4 100644 --- a/get_data.py +++ b/get_data.py @@ -31,6 +31,19 @@ MYHOST = platform.node() if not os.path.exists("logs"): os.makedirs("logs") +def get_fqdn(): + system_name = platform.system() + + if system_name == "Linux": + hostname = platform.node() + fqdn = f"https://{hostname}.tvstart.ru" + else: + fqdn = "http://127.0.0.1" + + return fqdn + +FQDN = get_fqdn + def get_fqdn(): system_name = platform.system()