Make the transcode h265 more robust
To prevent any errors, since the setting used to be different.
This commit is contained in:
parent
da66d61f6c
commit
5e6e606031
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue