mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Fix issue with server verification when working remotely.
This commit is contained in:
parent
637339ea62
commit
30c20b3061
4 changed files with 36 additions and 9 deletions
|
@ -859,7 +859,8 @@
|
|||
$("#pms-verify-status").html('<i class="fa fa-refresh fa-spin"></i> Verifying server...');
|
||||
$('#pms-verify-status').fadeIn('fast');
|
||||
$.ajax({
|
||||
url: 'http://' + pms_ip + ':' + pms_port + '/identity',
|
||||
url: 'get_server_id',
|
||||
data : { hostname: pms_ip, port: pms_port },
|
||||
cache: true,
|
||||
async: true,
|
||||
timeout: 5000,
|
||||
|
@ -868,7 +869,7 @@
|
|||
$('#pms-verify-status').fadeIn('fast');
|
||||
},
|
||||
success: function (xml) {
|
||||
if ( $(xml).find('MediaContainer').attr('machineIdentifier') ) {
|
||||
if ($(xml).find('MediaContainer').attr('machineIdentifier')) {
|
||||
$("#pms_identifier").val($(xml).find('MediaContainer').attr('machineIdentifier'));
|
||||
$("#pms-verify-status").html('<i class="fa fa-check"></i> Server verified!');
|
||||
$('#pms-verify-status').fadeIn('fast');
|
||||
|
|
|
@ -299,12 +299,12 @@ from plexpy import version
|
|||
$("#pms-verify-status").html('<i class="fa fa-refresh fa-spin"></i> Validating server...');
|
||||
$('#pms-verify-status').fadeIn('fast');
|
||||
$.ajax({
|
||||
url: 'http://' + pms_ip + ':' + pms_port + '/identity',
|
||||
url: 'get_server_id',
|
||||
data : { hostname: pms_ip, port: pms_port },
|
||||
cache: true,
|
||||
async: true,
|
||||
timeout: 5000,
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
console.log('we dont have a plex server');
|
||||
$("#pms-verify-status").html('<i class="fa fa-exclamation-circle"></i> This is not a Plex Server!');
|
||||
$('#pms-verify-status').fadeIn('fast');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue