diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py
index b1b2fc5f..979616a6 100644
--- a/resources/lib/playutils.py
+++ b/resources/lib/playutils.py
@@ -96,6 +96,11 @@ class PlayUtils():
# Avoid H265 1080p
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
return False
+ elif (utils.settings('transcodeHEVC') == "true" and
+ item['MediaSources'][0]['Name'].startswith("1080P/HEVC")):
+ # Avoid H265 1080p
+ self.logMsg("Option to transcode 1080P/HEVC enabled.", 1)
+ return False
canDirectPlay = item['MediaSources'][0]['SupportsDirectPlay']
# Make sure direct play is supported by the server
@@ -196,6 +201,11 @@ class PlayUtils():
# Avoid H265 1080p
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
return False
+ elif (utils.settings('transcodeHEVC') == "true" and
+ item['MediaSources'][0]['Name'].startswith("1080P/HEVC")):
+ # Avoid H265 1080p
+ self.logMsg("Option to transcode 1080P/HEVC enabled.", 1)
+ return False
# Requirement: BitRate, supported encoding
canDirectStream = item['MediaSources'][0]['SupportsDirectStream']
diff --git a/resources/settings.xml b/resources/settings.xml
index 53063d1a..2c8170ea 100644
--- a/resources/settings.xml
+++ b/resources/settings.xml
@@ -48,6 +48,7 @@
+