From a643878b7e6efa135119c746b20d795fc831e30d Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:46:19 -0800 Subject: [PATCH] Add `visualImpaired` attribute to `AudioStream` --- plexapi/media.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plexapi/media.py b/plexapi/media.py index 9c6e3115b..297e75913 100644 --- a/plexapi/media.py +++ b/plexapi/media.py @@ -386,6 +386,7 @@ class AudioStream(MediaPartStream): profile (str): The profile of the audio stream. samplingRate (int): The sampling rate of the audio stream (ex: xxx) streamIdentifier (int): The stream identifier of the audio stream. + visualImpaired (bool): True if this is a visually impaired (AD) audio stream. Track_only_attributes: The following attributes are only available for tracks. @@ -413,6 +414,7 @@ def _loadData(self, data): self.profile = data.attrib.get('profile') self.samplingRate = utils.cast(int, data.attrib.get('samplingRate')) self.streamIdentifier = utils.cast(int, data.attrib.get('streamIdentifier')) + self.visualImpaired = utils.cast(bool, data.attrib.get('visualImpaired', '0')) # Track only attributes self.albumGain = utils.cast(float, data.attrib.get('albumGain'))