Skip to content

Commit e862bd2

Browse files
authored
Add visualImpaired attribute to AudioStream (#1495)
1 parent a8d051f commit e862bd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: plexapi/media.py

+2
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ class AudioStream(MediaPartStream):
386386
profile (str): The profile of the audio stream.
387387
samplingRate (int): The sampling rate of the audio stream (ex: xxx)
388388
streamIdentifier (int): The stream identifier of the audio stream.
389+
visualImpaired (bool): True if this is a visually impaired (AD) audio stream.
389390
390391
Track_only_attributes: The following attributes are only available for tracks.
391392
@@ -413,6 +414,7 @@ def _loadData(self, data):
413414
self.profile = data.attrib.get('profile')
414415
self.samplingRate = utils.cast(int, data.attrib.get('samplingRate'))
415416
self.streamIdentifier = utils.cast(int, data.attrib.get('streamIdentifier'))
417+
self.visualImpaired = utils.cast(bool, data.attrib.get('visualImpaired', '0'))
416418

417419
# Track only attributes
418420
self.albumGain = utils.cast(float, data.attrib.get('albumGain'))

0 commit comments

Comments
 (0)