Merge pull request #198 from vexorian/20201121_dev

#171 Do not require Plex connection to play videos when direct paths are enabled.
This commit is contained in:
vexorian 2020-11-21 17:46:52 -04:00 committed by GitHub
commit 7a1cc1632c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,11 @@ lang=en`
}
async getDecision(directPlay) {
async getDecisionUnmanaged(directPlay) {
if (this.settings.streamPath === 'direct') {
console.log("Skip get transcode decision because direct path is enabled");
return;
}
let res = await axios.get(`${this.server.uri}/video/:/transcode/universal/decision?${this.transcodingArgs}`, {
headers: { Accept: 'application/json' }
})
@ -307,6 +311,14 @@ lang=en`
}
}
async getDecision(directPlay) {
try {
this.getDecisionUnmanaged(directPlay);
} catch (err) {
console.error(err);
}
}
getStatusUrl() {
let profileName=`Generic`;