mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Add setting for GeoLite2 database update interval
This commit is contained in:
parent
7ee1c51810
commit
3b44a3afd2
4 changed files with 14 additions and 2 deletions
|
@ -588,7 +588,7 @@ def update_geoip_db():
|
|||
if plexpy.CONFIG.GEOIP_DB_INSTALLED > 1:
|
||||
logger.info(u"Tautulli Helpers :: Checking for GeoLite2 database updates.")
|
||||
now = int(time.time())
|
||||
if now - plexpy.CONFIG.GEOIP_DB_INSTALLED >= 2592000: # 30 days
|
||||
if now - plexpy.CONFIG.GEOIP_DB_INSTALLED >= plexpy.CONFIG.GEOIP_DB_UPDATE_DAYS * 24 * 60 * 60:
|
||||
return install_geoip_db(update=True)
|
||||
logger.info(u"Tautulli Helpers :: GeoLite2 database already updated within the last 30 days.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue