Merge remote-tracking branch 'origin/main' into rebroadcast

This commit is contained in:
Koushik Dutta
2024-05-26 09:06:54 -07:00
4 changed files with 11 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# Home Assistant Addon Configuration
name: Scrypted
version: "v0.102.0-jammy-full"
version: "v0.105.0-jammy-full"
slug: scrypted
description: Scrypted is a high performance home video integration and automation platform
url: "https://github.com/koush/scrypted"

View File

@@ -557,6 +557,7 @@ class PluginRemote:
python_version = 'python%s' % str(
sys.version_info[0])+"."+str(sys.version_info[1])
print('python version:', python_version)
print('interpreter:', sys.executable)
python_versioned_directory = '%s-%s-%s' % (
python_version, platform.system(), platform.machine())

View File

@@ -1,5 +1,6 @@
import dns from 'dns';
import dotenv from 'dotenv';
import fs from 'fs';
import path from 'path';
import process from 'process';
import semver from 'semver';
@@ -17,6 +18,13 @@ export function isChildProcess() {
function start(mainFilename: string, options?: {
onRuntimeCreated?: (runtime: Runtime) => Promise<void>,
}) {
// Allow including a custom file path for platforms that require
// compatibility hacks. For example, Android may need to patch
// os functions.
if (process.env.SCRYPTED_COMPATIBILITY_FILE && fs.existsSync(process.env.SCRYPTED_COMPATIBILITY_FILE)) {
require(process.env.SCRYPTED_COMPATIBILITY_FILE);
}
if (!global.gc) {
v8.setFlagsFromString('--expose_gc')
global.gc = vm.runInNewContext("gc");

View File

@@ -29,14 +29,7 @@ function nodeIpAddress(family: number): string[] {
...costlyNetworks,
];
let interfaces: any;
try {
interfaces = os.networkInterfaces();
} catch {
// bjia56: When running in secured environments like UserLAnd in Android, os.networkInterfaces()
// is unable to get addresses and throws an error. Therefore, assume we can't find any addresses.
return [];
}
const interfaces = os.networkInterfaces();
const all = Object.keys(interfaces)
.map((nic) => {