From 9f7f81fd555fd5e644b6ee4425eb7952fd1c39d5 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 2 Dec 2015 16:55:20 -0600 Subject: [PATCH] Correct typo --- resources/lib/PlayUtils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index 241fb4f7..e8b9be58 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -60,7 +60,8 @@ class PlayUtils(): return False # Avoid H265 1080p - if utils.settings('transcodeH265') == "true": + if (utils.settings('transcodeH265') == "true" and + result['MediaSources'][0]['Name'].startswith("1080P/H265")): self.logMsg("Option to transcode 1080P/H265 enabled.", 1) return False @@ -131,7 +132,8 @@ class PlayUtils(): # FileSystem or Remote, BitRate, supported encoding # Avoid H265 1080p - if utils.settings('transcodeH265') == "true": + if (utils.settings('transcodeH265') == "true" and + result['MediaSources'][0]['Name'].startswith("1080P/H265")): self.logMsg("Option to transcode 1080P/H265 enabled.", 1) return False