check for zero bitrate coming from bdinfo

pull/702/head
Luke Pulverenti 11 years ago
parent 71514af96b
commit bf5b4decb7

@ -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…
Cancel
Save