diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-07-13 13:46:04 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-07-13 14:43:55 -0400 |
| commit | 0ccbaf025ad1ab8605caf74d57509e499c555d1b (patch) | |
| tree | 45c1d7bdb86519ae48cfd85bfd7d2ff5efd57957 | |
| parent | 7117f78651f21efae21c3337dab9d42a4c461a64 (diff) | |
update hls subtitle display name
| -rw-r--r-- | MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs index 780e20f87..8ea279f1a 100644 --- a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs +++ b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs @@ -572,13 +572,11 @@ namespace MediaBrowser.Api.Playback.Hls { const string format = "#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID=\"subs\",NAME=\"{0}\",DEFAULT={1},FORCED={2},AUTOSELECT=YES,URI=\"{3}\",LANGUAGE=\"{4}\""; - var name = stream.Language; + var name = stream.DisplayTitle; var isDefault = selectedIndex.HasValue && selectedIndex.Value == stream.Index; var isForced = stream.IsForced; - if (string.IsNullOrWhiteSpace(name)) name = stream.Codec ?? "Unknown"; - var url = string.Format("{0}/Subtitles/{1}/subtitles.m3u8?SegmentLength={2}&api_key={3}", state.Request.MediaSourceId, stream.Index.ToString(UsCulture), |
