You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, PlexAPI supports the hearingImpaired attribute with a boolean member in plexapi.media.SubtitleStream, allowing developers to easily identify and use this information. However, there is no equivalent boolean member for the visualImpaired attribute, which would be useful for identifying content designed for visually impaired users, such as those with audio descriptions.
I propose adding support for a visualImpaired boolean member to make it easier to work with this attribute in PlexAPI, similar to how hearingImpaired is implemented.
Are there any workarounds?
No response
Code Snippets
No response
Additional Context
Adding support for the visualImpaired attribute would align PlexAPI with Plex's accessibility features and improve its usability for developers building applications with accessibility in mind.
This enhancement would also create parity between hearingImpaired and visualImpaired attributes, making PlexAPI more consistent and robust.
@JonnyWong16, I'll see if I can get a sample provided (as I currently don't have one myself) by @gotson, who initially brought this to my attention in my repo for Plex Auto Languages.
Oh my, I just noticed that myself! I’ve been sick and barely getting any sleep this past week, so I’ve been in a bit of a fog and didn’t catch that until now and it even says Audio stream in the issue thread on my repo >.<
Yea at first, I thought it was for Subtitle rather than Audio, but I'm glad you caught that haha. Thanks for adding the attribute check to AudioStream! 😊
In the meantime, I've added extendedDisplayTitle and displayTitle checks in my code as before it was just checking against title and idk if ad is always going to be the same for every visualImpaired audio stream out there or not to address the issue in my repo. Once #1495 is fully implemented, it’ll definitely make things easier for me. ❤️
Activity
JonnyWong16 commentedon Jan 15, 2025
Could you provide a sample subtitle file with the attribute?
JourneyOver commentedon Jan 15, 2025
@JonnyWong16, I'll see if I can get a sample provided (as I currently don't have one myself) by @gotson, who initially brought this to my attention in my repo for Plex Auto Languages.
The XML example he shared with me is as follows:
However, I’m hoping @gotson can provide an actual file with the required attribute for further validation.
JonnyWong16 commentedon Jan 15, 2025
Wait, is it audio or subtitle? You mention
SubtitleStreambut the XML is forAudioStream.JourneyOver commentedon Jan 15, 2025
Oh my, I just noticed that myself! I’ve been sick and barely getting any sleep this past week, so I’ve been in a bit of a fog and didn’t catch that until now and it even says
Audio streamin the issue thread on my repo >.<Guess I should check https://python-plexapi.readthedocs.io/en/latest/modules/media.html#plexapi.media.MediaPartStream and https://python-plexapi.readthedocs.io/en/latest/modules/media.html#plexapi.media.AudioStream instead.
JonnyWong16 commentedon Jan 15, 2025
The XML you provided is enough info.
JourneyOver commentedon Jan 15, 2025
Yea at first, I thought it was for Subtitle rather than Audio, but I'm glad you caught that haha. Thanks for adding the attribute check to
AudioStream! 😊In the meantime, I've added
extendedDisplayTitleanddisplayTitlechecks in my code as before it was just checking againsttitleand idk ifadis always going to be the same for everyvisualImpairedaudio stream out there or not to address the issue in my repo. Once #1495 is fully implemented, it’ll definitely make things easier for me. ❤️