mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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']
|
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 = {
|
||||||
|
|
Loading…
Reference in a new issue