Fix subtitles defaulting to srt

Will now use the codec provided by server (srt, ass, ssa)
This commit is contained in:
angelblue05 2017-07-09 00:35:33 -05:00
parent 03e8b2ec86
commit 78655ccb28

View file

@ -265,8 +265,8 @@ class PlaybackUtils():
stream['IsExternal'] and stream['IsTextSubtitleStream']):
# Direct stream
url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.srt"
% (self.server, itemid, itemid, index))
url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.%s"
% (self.server, itemid, itemid, index, stream['Codec']))
if "Language" in stream: