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,8 +266,8 @@ class PlaybackUtils():
url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.srt" url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.srt"
% (self.server, itemid, itemid, index)) % (self.server, itemid, itemid, index))
if settings('downloadExternalSubs') == "true": if settings('downloadExternalSubs') == "true" and "Language" in stream:
filename = "Stream.%s.srt" % stream['Language'] filename = "Stream.%s.srt" % stream['Language']
try: try:
path = self._download_external_subs(url, temp, filename) path = self._download_external_subs(url, temp, filename)