mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update nfo codecs
This commit is contained in:
parent
316623cb5c
commit
adfc4560d1
@ -305,8 +305,19 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|||||||
|
|
||||||
if (!string.IsNullOrEmpty(stream.Codec))
|
if (!string.IsNullOrEmpty(stream.Codec))
|
||||||
{
|
{
|
||||||
writer.WriteElementString("codec", stream.Codec);
|
var codec = stream.Codec;
|
||||||
writer.WriteElementString("micodec", stream.Codec);
|
|
||||||
|
if ((stream.CodecTag ?? string.Empty).IndexOf("xvid", StringComparison.OrdinalIgnoreCase) != -1)
|
||||||
|
{
|
||||||
|
codec = "xvid;";
|
||||||
|
}
|
||||||
|
else if ((stream.CodecTag ?? string.Empty).IndexOf("divx", StringComparison.OrdinalIgnoreCase) != -1)
|
||||||
|
{
|
||||||
|
codec = "divx;";
|
||||||
|
}
|
||||||
|
|
||||||
|
writer.WriteElementString("codec", codec);
|
||||||
|
writer.WriteElementString("micodec", codec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream.BitRate.HasValue)
|
if (stream.BitRate.HasValue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user