Fix Plex extras not playing

- Fixes #515
This commit is contained in:
croneter 2018-07-27 14:05:44 +02:00
parent f0db5a82f8
commit 1ca9099a0e

View file

@ -1298,17 +1298,17 @@ class API(object):
else: else:
option = '%s ' % option option = '%s ' % option
if 'videoResolution' in entry.attrib: if 'videoResolution' in entry.attrib:
res = utils.try_decode(entry['videoResolution']) res = utils.try_decode(entry.attrib['videoResolution'])
option = '%s%sp ' % (option, res) option = '%s%sp ' % (option, res)
if 'videoCodec' in entry.attrib: if 'videoCodec' in entry.attrib:
codec = utils.try_decode(entry['videoCodec']) codec = utils.try_decode(entry.attrib['videoCodec'])
option = '%s%s' % (option, codec) option = '%s%s' % (option, codec)
option = option.strip() + ' - ' option = option.strip() + ' - '
if 'audioProfile' in entry.attrib: if 'audioProfile' in entry.attrib:
profile = utils.try_decode(entry['audioProfile']) profile = utils.try_decode(entry.attrib['audioProfile'])
option = '%s%s ' % (option, profile) option = '%s%s ' % (option, profile)
if 'audioCodec' in entry.attrib: if 'audioCodec' in entry.attrib:
codec = utils.try_decode(entry['audioCodec']) codec = utils.try_decode(entry.attrib['audioCodec'])
option = '%s%s ' % (option, codec) option = '%s%s ' % (option, codec)
option = utils.try_encode(option.strip()) option = utils.try_encode(option.strip())
dialoglist.append(option) dialoglist.append(option)