Fixed #366, as well as some cleanups

This commit is contained in:
UKDTOM 2021-05-28 23:30:15 +02:00
parent 7722810ec9
commit 90bab8e141
8 changed files with 167 additions and 158 deletions

View file

@ -1,5 +1,9 @@
# ![Logo](https://github.com/WebTools-NG/WebTools-NG/blob/master/src/assets/WebTools-48x48.png) WebTools-ng Change log # ![Logo](https://github.com/WebTools-NG/WebTools-NG/blob/master/src/assets/WebTools-48x48.png) WebTools-ng Change log
## V0.3.10
* [#366 if possible allow lan only connections](https://github.com/WebTools-NG/WebTools-NG/issues/366)
## V0.3.9 ## V0.3.9
* [#359 ET: Log time it took](https://github.com/WebTools-NG/WebTools-NG/issues/359) * [#359 ET: Log time it took](https://github.com/WebTools-NG/WebTools-NG/issues/359)

View file

@ -1,7 +1,7 @@
{ {
"name": "webtools-ng", "name": "webtools-ng",
"productName": "WebTools-NG", "productName": "WebTools-NG",
"version": "0.3.9", "version": "0.3.10",
"description": "WebTools Next Generation 4 Plex", "description": "WebTools Next Generation 4 Plex",
"author": "dane22 & CPSO", "author": "dane22 & CPSO",
"license": "MPL-2.0", "license": "MPL-2.0",

View file

@ -15,7 +15,9 @@ import {
const isDevelopment = process.env.NODE_ENV !== 'production' const isDevelopment = process.env.NODE_ENV !== 'production'
// Bad thing, but need to disable cert checks, since connecting via ip
// to a cert issued for plex.direct
app.commandLine.appendSwitch('ignore-certificate-errors', 'true');
// Keep a global reference of the window object, if you don't, the window will // Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected. // be closed automatically when the JavaScript object is garbage collected.

View file

@ -14,11 +14,15 @@ const ptv = new class PTV {
let local = false; let local = false;
// Start with the local address check first // Start with the local address check first
for (var i = 0; i < server.connections.length; i++) { for (var i = 0; i < server.connections.length; i++) {
//server.connections.forEach((val) => {
let val = server.connections[i]; let val = server.connections[i];
log.verbose(`Checking: ${val.uri}`); log.verbose(`Checking: ${val.protocol}://${val.address}:${val.port}`);
let baseurl = val.uri; let baseurl = val.protocol + '://' + val.address + ':' + val.port;
await axios.get(baseurl + '/identity', { await axios.get(baseurl + '/identity', {
headers: { headers: {
Accept: 'application/json' Accept: 'application/json'
}, },

View file

@ -106,7 +106,6 @@
</div> </div>
<br> <br>
<p class="text-center">{{ $t('Modules.PlexTV.Settings') }}</p> <p class="text-center">{{ $t('Modules.PlexTV.Settings') }}</p>
{{ this.selSection }}
</b-container> </b-container>
</template> </template>