Update playutils.py

This commit is contained in:
A69Tor 2016-05-06 16:41:37 -04:00
parent 6cb056c987
commit d99e7a1290

View file

@ -102,7 +102,7 @@ class PlayUtils():
videotrack = self.item['MediaSources'][0]['Name'] videotrack = self.item['MediaSources'][0]['Name']
transcodeH265 = settings('transcodeH265') transcodeH265 = settings('transcodeH265')
videoprofile = self.item['MediaSources'][1]['Name'] videoprofile = self.item['MediaSources'][0]['Profile']
transcodeHi10P = settings('transcodeHi10P') transcodeHi10P = settings('transcodeHi10P')
if transcodeHi10P == "true" and "H264" in videotrack and "High 10" in videoprofile: if transcodeHi10P == "true" and "H264" in videotrack and "High 10" in videoprofile:
@ -212,7 +212,7 @@ class PlayUtils():
videotrack = self.item['MediaSources'][0]['Name'] videotrack = self.item['MediaSources'][0]['Name']
transcodeH265 = utils.settings('transcodeH265') transcodeH265 = utils.settings('transcodeH265')
videoprofile = self.item['MediaSources'][1]['Name'] videoprofile = self.item['MediaSources'][0]['Profile']
transcodeHi10P = settings('transcodeHi10P') transcodeHi10P = settings('transcodeHi10P')
if transcodeHi10P == "true" and "H264" in videotrack and "High 10" in videoprofile: if transcodeHi10P == "true" and "H264" in videotrack and "High 10" in videoprofile: