More descriptive downloadable subtitles

This commit is contained in:
croneter 2017-08-11 12:21:44 +02:00
parent e4ca63b42c
commit 8af180968b

View file

@ -2357,11 +2357,11 @@ class API():
# ext = stream.attrib.get('format')
if key:
# We do know the language - temporarily download
if stream.attrib.get('languageCode') is not None:
if stream.attrib.get('language') is not None:
path = self.download_external_subtitles(
"{server}%s" % key,
"subtitle%02d.%s.%s" % (fileindex,
stream.attrib['languageCode'],
stream.attrib['language'],
stream.attrib['codec']))
fileindex += 1
# We don't know the language - no need to download