From 73d3974e39bfdec3586986515293885933e27964 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 2 Dec 2015 16:47:07 -0600 Subject: [PATCH] Convert Force transcode to an option Only for 1080p/H265 --- resources/lib/PlayUtils.py | 8 ++++---- resources/settings.xml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index 4b791019..241fb4f7 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -60,8 +60,8 @@ class PlayUtils(): return False # Avoid H265 1080p - if result['MediaSources'][0]['Name'].startswith("1080P/H265"): - self.logMsg("Skip direct play for 1080P/H265 since format playback is not stable.", 1) + if utils.settings('transcodeH265') == "true": + self.logMsg("Option to transcode 1080P/H265 enabled.", 1) return False canDirectPlay = result['MediaSources'][0]['SupportsDirectPlay'] @@ -131,8 +131,8 @@ class PlayUtils(): # FileSystem or Remote, BitRate, supported encoding # Avoid H265 1080p - if result['MediaSources'][0]['Name'].startswith("1080P/H265"): - self.logMsg("Skip direct stream for 1080P/H265 since format playback is not stable.", 1) + if utils.settings('transcodeH265') == "true": + self.logMsg("Option to transcode 1080P/H265 enabled.", 1) return False canDirectStream = result['MediaSources'][0]['SupportsDirectStream'] diff --git a/resources/settings.xml b/resources/settings.xml index 125b4de7..20babc30 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -43,6 +43,7 @@ +