From 189175150f3ab00691e792a0649df6b20fd9b4e5 Mon Sep 17 00:00:00 2001 From: iDentitY4 Date: Fri, 22 Dec 2023 21:49:44 +0100 Subject: [PATCH] Fix subtitleLanguage attribute (#1308) --- plexapi/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexapi/video.py b/plexapi/video.py index e8d2b7a1..b932abc7 100644 --- a/plexapi/video.py +++ b/plexapi/video.py @@ -521,7 +521,7 @@ class Show( self.showOrdering = data.attrib.get('showOrdering') self.similar = self.findItems(data, media.Similar) self.studio = data.attrib.get('studio') - self.subtitleLanguage = data.attrib.get('audioLanguage', '') + self.subtitleLanguage = data.attrib.get('subtitleLanguage', '') self.subtitleMode = utils.cast(int, data.attrib.get('subtitleMode', '-1')) self.tagline = data.attrib.get('tagline') self.theme = data.attrib.get('theme') @@ -691,7 +691,7 @@ class Season( self.parentThumb = data.attrib.get('parentThumb') self.parentTitle = data.attrib.get('parentTitle') self.ratings = self.findItems(data, media.Rating) - self.subtitleLanguage = data.attrib.get('audioLanguage', '') + self.subtitleLanguage = data.attrib.get('subtitleLanguage', '') self.subtitleMode = utils.cast(int, data.attrib.get('subtitleMode', '-1')) self.viewedLeafCount = utils.cast(int, data.attrib.get('viewedLeafCount')) self.year = utils.cast(int, data.attrib.get('year'))