diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index d912f9d8..01ab8280 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -1250,7 +1250,7 @@
- +
@@ -2859,7 +2859,7 @@ $(document).ready(function() { gotoSetting('3rd_party_apis', 'geoip_db') } - if ("${config['geoip_db_installed']}" > "1") { + if ("${config['geoip_db_installed']}" > "0") { $("#geoip_db_updated").text(moment("${config['geoip_db_installed']}", "X").fromNow()); } diff --git a/plexpy/config.py b/plexpy/config.py index 58e57f2e..469f3f47 100644 --- a/plexpy/config.py +++ b/plexpy/config.py @@ -928,7 +928,6 @@ class Config(object): self.CONFIG_VERSION = 13 if self.CONFIG_VERSION == 13: - self.GEOIP_DB_INSTALLED = int(bool(self.GEOIP_DB)) if not self.GEOIP_DB: self.GEOIP_DB = os.path.join(plexpy.DATA_DIR, 'GeoLite2-City.mmdb') diff --git a/plexpy/helpers.py b/plexpy/helpers.py index 6597b12e..f8256ce1 100644 --- a/plexpy/helpers.py +++ b/plexpy/helpers.py @@ -585,7 +585,7 @@ def is_valid_ip(address): def update_geoip_db(): - if plexpy.CONFIG.GEOIP_DB_INSTALLED > 1: + if plexpy.CONFIG.GEOIP_DB_INSTALLED: logger.info(u"Tautulli Helpers :: Checking for GeoLite2 database updates.") now = int(time.time()) if now - plexpy.CONFIG.GEOIP_DB_INSTALLED >= plexpy.CONFIG.GEOIP_DB_UPDATE_DAYS * 24 * 60 * 60: