-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by mangavalk
-
-
function getServers(containerSelector, selected) { var url = '/plugins/plexstreams/getServers.php?useSsl=' + $('input[name="FORCE_PLEX_HTTPS"]:checked').val(); var $host = $(containerSelector); $host.hide(); $('.lds-dual-ring').show(); selected = selected.split(','); $host.html(''); $.get(url).done(function(data) { serverList = data.serverList; for (var id in serverList) { if (serverList.hasOwnProperty(id)) { var server = serverList[id]; serverList[id].Connections.forEach(function(connection) { if(connection != null) $host.append('<input type="checkbox" onchange="updateServerList(\'HOST\')" name="hostbox" id="' + connection.uri + '" data-id="' + id + '"' + (selected.indexOf(connection.uri) > -1 ? ' checked="checked"' : '' ) + ' value="' + connection.uri + '"/> <label for="' + connection.uri + '"> ' + server.Name + ' (' + connection.address + ':' + connection.port + ')' + (connection.local === '0' ? ' - Remote' : '') + '</label><br/>'); }); } } $host.show(); $('.lds-dual-ring').hide(); }); }
Added this change in plex.js fixes it
-
24 minutes ago, dorgan said:
What screen are you on when seeing this error? Dashboard, settings or streams?
settings
-
One more issue, the one from before.
plex.js:24 Uncaught TypeError: Cannot read property 'uri' of null at plex.js:24 at Array.forEach (<anonymous>) at Object.<anonymous> (plex.js:23) at i (dynamix.js?v=1583697979:4) at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4) at z (dynamix.js?v=1583697979:4) at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)
I looked into the code, there is a proton object inside the server list. so that makes the script break.
-
after the last update i cant add a plex token anymore.
when using the get plex token button and login in i get the following error in console
plex.js:16 Uncaught TypeError: Cannot read property 'split' of undefined at getServers (plex.js:16) at Object.success (plex.js:206) at i (dynamix.js?v=1583697979:4) at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4) at z (dynamix.js?v=1583697979:4) at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)
ps: before the update i could add the token but the plugin would never load the server.
[Plugin] Plex Streams
in Plugin Support
Posted · Edited by mangavalk
sorry to bother but:
edit: works now:)