mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-23 14:10:40 +02:00
Avoid including stray commas in HLS codecs field
This commit is contained in:
parent
75bb127599
commit
542185fba4
|
@ -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