Jump to content

mangavalk

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by mangavalk

  1. sorry to bother but:
     

    plugin: downloading: https://raw.githubusercontent.com/dorgan/Unraid-plexstreams/master/archive/plexstreams-2020.06.20a-x86_64-1.txz ... failed (Invalid URL / Server error response)
    plugin: wget: https://raw.githubusercontent.com/dorgan/Unraid-plexstreams/master/archive/plexstreams-2020.06.20a-x86_64-1.txz download failure (Invalid URL / Server error response)

     

    edit: works now:)

  2. 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 :)

  3. 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.

  4. 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.

×
×
  • Create New...