From 02a60fac207bd1960b997680577b04712154e0da Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 2 Oct 2017 17:41:28 +0200 Subject: [PATCH] Revert "More descriptive downloadable subtitles" This reverts commit 8af180968b41f0600a440cceb5967b1ce6d7e4e2. --- resources/lib/PlexAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 8de6fbcf..8ca34e15 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -2369,11 +2369,11 @@ class API(): # ext = stream.attrib.get('format') if key: # We do know the language - temporarily download - if stream.attrib.get('language') is not None: + if stream.attrib.get('languageCode') is not None: path = self.download_external_subtitles( "{server}%s" % key, "subtitle%02d.%s.%s" % (fileindex, - stream.attrib['language'], + stream.attrib['languageCode'], stream.attrib['codec'])) fileindex += 1 # We don't know the language - no need to download