- Enter your MaxMind License Key. You can register for a license key here.
+ Enter your MaxMind License Key to install the GeoLite2 database. You can register for a license key here.
- ${docker_msg | n}
+ ${docker_msg | n}
-
-
-
-
-
+
+
+
+
+
+
+
+
+ The GeoLite2 database is used to geolocate IP addresses. Database last updated never.
+
@@ -2818,24 +2823,43 @@ $(document).ready(function() {
openPlexXML('/api/resources', true, {includeHttps: 1});
});
- if ("${kwargs.get('install_geoip')}" == 'true') {
+ if ("${kwargs.get('install_geoip')}" === 'true') {
gotoSetting('notifications', 'geoip_db')
}
+ if ("${config['geoip_db_installed']}" > "0") {
+ $("#geoip_db_updated").text(moment("${config['geoip_db_installed']}", "X").fromNow());
+ }
+
$("#install_geoip_db").click(function () {
var msg = 'Are you sure you want to install the GeoLite2 database?
' +
'The database is used to lookup IP address geolocation info. ' +
'The database will be downloaded from MaxMind, ' +
- 'and requires 100MB of free space to install in your Tautulli directory. '
+ 'and requires 100MB of free space to install in your Tautulli directory. ';
var url = 'install_geoip_db';
- confirmAjaxCall(url, msg, null, 'Installing GeoLite2 database.', function () {$('#install_geoip_db').text('Update');});
+ if ($(this).text() === 'Update') {
+ url += '?update=true';
+ }
+ confirmAjaxCall(url, msg, null, 'Installing GeoLite2 database.', function (result) {
+ if (result.result === "success") {
+ $('#install_geoip_db').text('Update');
+ $('#geoip_db_updated').text(moment(result.updated, "X").fromNow());
+ }
+ getSchedulerTable();
+ });
});
$("#uninstall_geoip_db").click(function () {
var msg = 'Are you sure you want to uninstall the GeoLite2 database?