Make the transcode h265 more robust

To prevent any errors, since the setting used to be different.
This commit is contained in:
angelblue05 2016-02-06 23:06:05 -06:00
parent da66d61f6c
commit 5e6e606031
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ class PlayUtils():
videotrack = item['MediaSources'][0]['Name'] videotrack = item['MediaSources'][0]['Name']
transcodeH265 = utils.settings('transcodeH265') 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 # Avoid H265/HEVC depending on the resolution
resolution = int(videotrack.split("P", 1)[0]) resolution = int(videotrack.split("P", 1)[0])
res = { res = {
@ -211,7 +211,7 @@ class PlayUtils():
videotrack = item['MediaSources'][0]['Name'] videotrack = item['MediaSources'][0]['Name']
transcodeH265 = utils.settings('transcodeH265') 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 # Avoid H265/HEVC depending on the resolution
resolution = int(videotrack.split("P", 1)[0]) resolution = int(videotrack.split("P", 1)[0])
res = { res = {