mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-09 02:45:07 +00:00
Force transcode 720/h265
This commit is contained in:
parent
fa826c2791
commit
d7d5e8b6e1
2 changed files with 13 additions and 0 deletions
|
@ -97,6 +97,12 @@ class PlayUtils():
|
|||
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
|
||||
return False
|
||||
|
||||
elif (utils.settings('transcode720H265') == "true" and
|
||||
item['MediaSources'][0]['Name'].startswith(("720P/HEVC","720P/H265"))):
|
||||
# Avoid H265 720p
|
||||
self.logMsg("Option to transcode 720P/H265 enabled.", 1)
|
||||
return False
|
||||
|
||||
canDirectPlay = item['MediaSources'][0]['SupportsDirectPlay']
|
||||
# Make sure direct play is supported by the server
|
||||
if not canDirectPlay:
|
||||
|
@ -197,6 +203,12 @@ class PlayUtils():
|
|||
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
|
||||
return False
|
||||
|
||||
elif (utils.settings('transcode720H265') == "true" and
|
||||
item['MediaSources'][0]['Name'].startswith(("720P/HEVC","720P/H265"))):
|
||||
# Avoid H265 720p
|
||||
self.logMsg("Option to transcode 720P/H265 enabled.", 1)
|
||||
return False
|
||||
|
||||
# Requirement: BitRate, supported encoding
|
||||
canDirectStream = item['MediaSources'][0]['SupportsDirectStream']
|
||||
# Make sure the server supports it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue