More descriptive downloadable subtitles
This commit is contained in:
parent
e4ca63b42c
commit
8af180968b
1 changed files with 2 additions and 2 deletions
|
@ -2357,11 +2357,11 @@ class API():
|
||||||
# ext = stream.attrib.get('format')
|
# ext = stream.attrib.get('format')
|
||||||
if key:
|
if key:
|
||||||
# We do know the language - temporarily download
|
# 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(
|
path = self.download_external_subtitles(
|
||||||
"{server}%s" % key,
|
"{server}%s" % key,
|
||||||
"subtitle%02d.%s.%s" % (fileindex,
|
"subtitle%02d.%s.%s" % (fileindex,
|
||||||
stream.attrib['languageCode'],
|
stream.attrib['language'],
|
||||||
stream.attrib['codec']))
|
stream.attrib['codec']))
|
||||||
fileindex += 1
|
fileindex += 1
|
||||||
# We don't know the language - no need to download
|
# We don't know the language - no need to download
|
||||||
|
|
Loading…
Reference in a new issue