Fix white screen when core version is too old but doesn't have any auths enabled
This commit is contained in:
parent
2ded21e988
commit
5f85f3aef9
@ -358,7 +358,9 @@ class Restreamer {
|
||||
}
|
||||
|
||||
compatibility.core.have = this.Version().number;
|
||||
compatibility.ffmpeg.have = this.skills.ffmpeg.version;
|
||||
if (this.skills?.ffmpeg?.version) {
|
||||
compatibility.ffmpeg.have = this.skills.ffmpeg.version;
|
||||
}
|
||||
|
||||
compatibility.core.compatible = SemverSatisfies(compatibility.core.have, compatibility.core.want);
|
||||
compatibility.ffmpeg.compatible = SemverSatisfies(compatibility.ffmpeg.have, compatibility.ffmpeg.want);
|
||||
@ -371,8 +373,13 @@ class Restreamer {
|
||||
}
|
||||
|
||||
async _init() {
|
||||
await this._initConfig();
|
||||
const compatibility = this.Compatibility();
|
||||
if (!compatibility.compatible) {
|
||||
return;
|
||||
}
|
||||
|
||||
await this._initSkills();
|
||||
await this._initConfig();
|
||||
await this._discoverChannels();
|
||||
}
|
||||
|
||||
@ -889,6 +896,10 @@ class Restreamer {
|
||||
}
|
||||
|
||||
ConfigOverrides(name) {
|
||||
if (!this.config) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.config.overrides.includes(name);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user