From 9302bcc05d7031b17b33f3e55a2e69ab150ed58a Mon Sep 17 00:00:00 2001 From: vexorian Date: Sat, 20 Jun 2020 07:48:02 -0400 Subject: [PATCH] Deal with 'Cannot convert to below minimum bandwidth of' error. --- src/plexTranscoder.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plexTranscoder.js b/src/plexTranscoder.js index a9be5cf..4d804db 100644 --- a/src/plexTranscoder.js +++ b/src/plexTranscoder.js @@ -110,7 +110,12 @@ lang=en` } isVideoDirectStream() { - return this.decisionJson["MediaContainer"]["Metadata"][0]["Media"][0]["Part"][0]["Stream"][0]["decision"] == "copy"; + try { + return this.decisionJson["MediaContainer"]["Metadata"][0]["Media"][0]["Part"][0]["Stream"][0]["decision"] == "copy"; + } catch (e) { + console.log("Error at decision:" + e); + return false; + } } getResolutionHeight() {