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']): stream['IsExternal'] and stream['IsTextSubtitleStream']):
# Direct stream # Direct stream
url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.srt" url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.%s"
% (self.server, itemid, itemid, index)) % (self.server, itemid, itemid, index, stream['Codec']))
if "Language" in stream: if "Language" in stream: