Fix external subs error

In case it doesn't contain a language tag
This commit is contained in:
angelblue05 2016-09-01 17:21:12 -05:00
parent 53afbeea35
commit 95cd7b9844

View file

@ -266,7 +266,7 @@ 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: