Changed Subtitle index

Changed SubtitleIndex to -2 so it defaults to no subs
This commit is contained in:
Austin Tinius 2020-05-14 15:08:43 -07:00 committed by GitHub
parent acc4c09b9b
commit 1aab8abc55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ module.exports = function ($http, $window, $interval) {
}
if (program.type === 'episode' || program.type === 'movie') {
program.file = `${server.protocol}://${server.host}:${server.port}${res.Metadata[i].Media[0].Part[0].key}?X-Plex-Token=${server.token}`
program.opts = { deinterlace: false, videoIndex: '-1', audioIndex: '-1', subtitleIndex: '-1' }
program.opts = { deinterlace: false, videoIndex: '-1', audioIndex: '-1', subtitleIndex: '-2' }
}
if (program.type === 'episode') {
program.showTitle = res.Metadata[i].grandparentTitle
@ -156,4 +156,4 @@ function msToTime(duration) {
seconds = (seconds < 10) ? "0" + seconds : seconds;
return hours + ":" + minutes + ":" + seconds + "." + milliseconds;
}
}