File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ class SubtitleStream(MediaPartStream):
256256 Attributes:
257257 TAG (str): 'Stream'
258258 STREAMTYPE (int): 3
259+ forced (bool): True if this is a forced subtitle
259260 format (str): Subtitle format (ex: srt).
260261 key (str): Key of this subtitle stream (ex: /library/streams/212284).
261262 title (str): Title of this subtitle stream.
@@ -266,6 +267,7 @@ class SubtitleStream(MediaPartStream):
266267 def _loadData (self , data ):
267268 """ Load attribute values from Plex XML response. """
268269 super (SubtitleStream , self )._loadData (data )
270+ self .forced = cast (bool , data .attrib .get ('forced' , '0' ))
269271 self .format = data .attrib .get ('format' )
270272 self .key = data .attrib .get ('key' )
271273 self .title = data .attrib .get ('title' )
You can’t perform that action at this time.
0 commit comments