From a1f656fbca3569ffd53c987391395f9b8392d1fe Mon Sep 17 00:00:00 2001 From: DYefremov Date: Fri, 1 Nov 2024 14:40:05 +0300 Subject: [PATCH] add additional reload data cmds --- app/connections.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/connections.py b/app/connections.py index 0a191864..9574675d 100644 --- a/app/connections.py +++ b/app/connections.py @@ -529,8 +529,12 @@ def upload_data(*, settings, download_type=DownloadType.ALL, callback=log, done_ ht.send((f"{url}servicelistreload?mode=2", "Reloading Userbouquets.")) elif download_type is DownloadType.ALL or download_type is DownloadType.SERVICES: ht.send((f"{url}servicelistreload?mode=0", "Reloading lamedb and Userbouquets.")) + time.sleep(1) + ht.send((f"{url}servicelistreload?mode=4", "Updating parental control.")) if not settings.keep_power_mode: ht.send((f"{url}powerstate?newstate=4", "Wakeup from Standby.")) + elif download_type is DownloadType.SATELLITES: + ht.send((f"{url}servicelistreload?mode=3", "Reloading transponders.")) else: ht.send((f"{url}reloadchannels", "Reloading channels..."))