mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
Merge pull request #3846 from YouKnowBlom/fix-cc-hls
Avoid including stray commas in HLS codecs field
This commit is contained in:
commit
f4302822f0
1 changed files with 8 additions and 3 deletions
|
@ -1496,9 +1496,14 @@ namespace Jellyfin.Api.Controllers
|
||||||
|
|
||||||
StringBuilder codecs = new StringBuilder();
|
StringBuilder codecs = new StringBuilder();
|
||||||
|
|
||||||
codecs.Append(videoCodecs)
|
codecs.Append(videoCodecs);
|
||||||
.Append(',')
|
|
||||||
.Append(audioCodecs);
|
if (!string.IsNullOrEmpty(videoCodecs) && !string.IsNullOrEmpty(audioCodecs))
|
||||||
|
{
|
||||||
|
codecs.Append(',');
|
||||||
|
}
|
||||||
|
|
||||||
|
codecs.Append(audioCodecs);
|
||||||
|
|
||||||
if (codecs.Length > 1)
|
if (codecs.Length > 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue