mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
check for zero bitrate coming from bdinfo
This commit is contained in:
parent
71514af96b
commit
bf5b4decb7
2 changed files with 9 additions and 2 deletions
|
@ -119,7 +119,8 @@ namespace MediaBrowser.Providers.Savers
|
|||
"IMDBrating",
|
||||
"Description",
|
||||
"Artist",
|
||||
"Album"
|
||||
"Album",
|
||||
"TmdbCollectionName"
|
||||
});
|
||||
|
||||
// Set last refreshed so that the provider doesn't trigger after the file save
|
||||
|
|
|
@ -127,7 +127,6 @@ namespace MediaBrowser.Server.Implementations.BdInfo
|
|||
{
|
||||
var stream = new MediaStream
|
||||
{
|
||||
BitRate = Convert.ToInt32(audioStream.BitRate),
|
||||
Codec = audioStream.CodecShortName,
|
||||
Language = audioStream.LanguageCode,
|
||||
Channels = audioStream.ChannelCount,
|
||||
|
@ -136,6 +135,13 @@ namespace MediaBrowser.Server.Implementations.BdInfo
|
|||
Index = streams.Count
|
||||
};
|
||||
|
||||
var bitrate = Convert.ToInt32(audioStream.BitRate);
|
||||
|
||||
if (bitrate > 0)
|
||||
{
|
||||
stream.BitRate = bitrate;
|
||||
}
|
||||
|
||||
if (audioStream.LFE > 0)
|
||||
{
|
||||
stream.Channels = audioStream.ChannelCount + 1;
|
||||
|
|
Loading…
Reference in a new issue