mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix external subs error
In case it doesn't contain a language tag
This commit is contained in:
parent
53afbeea35
commit
95cd7b9844
1 changed files with 2 additions and 2 deletions
|
@ -266,8 +266,8 @@ class PlaybackUtils():
|
|||
url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.srt"
|
||||
% (self.server, itemid, itemid, index))
|
||||
|
||||
if settings('downloadExternalSubs') == "true":
|
||||
|
||||
if settings('downloadExternalSubs') == "true" and "Language" in stream:
|
||||
|
||||
filename = "Stream.%s.srt" % stream['Language']
|
||||
try:
|
||||
path = self._download_external_subs(url, temp, filename)
|
||||
|
|
Loading…
Reference in a new issue