mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-14 05:15:08 +00:00
Add HEVC transcode setting
This commit is contained in:
parent
950ae74939
commit
86f4039b89
2 changed files with 11 additions and 0 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue