mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-28 13:01:57 +00:00
Merge pull request #3846 from YouKnowBlom/fix-cc-hls
Avoid including stray commas in HLS codecs field
This commit is contained in:
@@ -1496,9 +1496,14 @@ namespace Jellyfin.Api.Controllers
|
||||
|
||||
StringBuilder codecs = new StringBuilder();
|
||||
|
||||
codecs.Append(videoCodecs)
|
||||
.Append(',')
|
||||
.Append(audioCodecs);
|
||||
codecs.Append(videoCodecs);
|
||||
|
||||
if (!string.IsNullOrEmpty(videoCodecs) && !string.IsNullOrEmpty(audioCodecs))
|
||||
{
|
||||
codecs.Append(',');
|
||||
}
|
||||
|
||||
codecs.Append(audioCodecs);
|
||||
|
||||
if (codecs.Length > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user