From c63215c992825d282d420d0748b2e81eb286cc83 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 30 May 2019 04:27:40 +0200 Subject: [PATCH] Don't download geolite db in offline mode --- plugins/Sidebar/SidebarPlugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 4617a1ae..4c0d9a29 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -560,6 +560,9 @@ class UiWebsocketPlugin(object): import shutil from util import helper + if config.offline: + return False + self.log.info("Downloading GeoLite2 City database...") self.cmd("progress", ["geolite-info", _["Downloading GeoLite2 City database (one time only, ~20MB)..."], 0]) db_urls = [