Do not allow to enable subtitles if direct play is forced.
This commit is contained in:
parent
61b6d67f21
commit
904444ebc5
@ -42,9 +42,11 @@ class PlexTranscoder {
|
||||
this.log(` deinterlace: ${deinterlace}`)
|
||||
this.log(` streamPath: ${this.settings.streamPath}`)
|
||||
|
||||
|
||||
|
||||
if (this.settings.streamPath === 'direct' || this.settings.forceDirectPlay) {
|
||||
if (this.settings.enableSubtitles) {
|
||||
console.log("Direct play is forced, so subtitles are forcibly disabled.");
|
||||
this.settings.enableSubtitles = false;
|
||||
}
|
||||
stream = {directPlay: true}
|
||||
} else {
|
||||
try {
|
||||
|
||||
@ -145,6 +145,9 @@ module.exports = function (plex, dizquetv, $timeout) {
|
||||
return r;
|
||||
}
|
||||
|
||||
scope.shouldDisableSubtitles = () => {
|
||||
return scope.settings.forceDirectPlay || (scope.settings.streamPath === "direct" );
|
||||
}
|
||||
|
||||
scope.addPlexServer = async () => {
|
||||
scope.isProcessing = true;
|
||||
|
||||
@ -178,8 +178,8 @@
|
||||
<input type="text" class="form-control form-control-sm" ng-model="settings.subtitleSize" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input id="enableSubtitles" type="checkbox" ng-model="settings.enableSubtitles"/>
|
||||
<label for="enableSubtitles">Enable Subtitles (Requires Transcoding)</label>
|
||||
<input class="form-check-input" id="enableSubtitles" type="checkbox" ng-model="settings.enableSubtitles" ng-disabled="shouldDisableSubtitles()" />
|
||||
<label class="form-check-label" for="enableSubtitles">Enable Subtitles (Requires Transcoding)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user