From 5e6e606031aed0f82b9873a012ca4133733ba417 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 6 Feb 2016 23:06:05 -0600 Subject: [PATCH] Make the transcode h265 more robust To prevent any errors, since the setting used to be different. --- resources/lib/playutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index 4504bc4a..7978b567 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -100,7 +100,7 @@ class PlayUtils(): videotrack = item['MediaSources'][0]['Name'] transcodeH265 = utils.settings('transcodeH265') - if transcodeH265 != "0" and ("HEVC" in videotrack or "H265" in videotrack): + if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack): # Avoid H265/HEVC depending on the resolution resolution = int(videotrack.split("P", 1)[0]) res = { @@ -211,7 +211,7 @@ class PlayUtils(): videotrack = item['MediaSources'][0]['Name'] transcodeH265 = utils.settings('transcodeH265') - if transcodeH265 != "0" and ("HEVC" in videotrack or "H265" in videotrack): + if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack): # Avoid H265/HEVC depending on the resolution resolution = int(videotrack.split("P", 1)[0]) res = {