mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
check for zero bitrate coming from bdinfo
This commit is contained in:
parent
71514af96b
commit
bf5b4decb7
@ -119,7 +119,8 @@ namespace MediaBrowser.Providers.Savers
|
|||||||
"IMDBrating",
|
"IMDBrating",
|
||||||
"Description",
|
"Description",
|
||||||
"Artist",
|
"Artist",
|
||||||
"Album"
|
"Album",
|
||||||
|
"TmdbCollectionName"
|
||||||
});
|
});
|
||||||
|
|
||||||
// Set last refreshed so that the provider doesn't trigger after the file save
|
// 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
|
var stream = new MediaStream
|
||||||
{
|
{
|
||||||
BitRate = Convert.ToInt32(audioStream.BitRate),
|
|
||||||
Codec = audioStream.CodecShortName,
|
Codec = audioStream.CodecShortName,
|
||||||
Language = audioStream.LanguageCode,
|
Language = audioStream.LanguageCode,
|
||||||
Channels = audioStream.ChannelCount,
|
Channels = audioStream.ChannelCount,
|
||||||
@ -136,6 +135,13 @@ namespace MediaBrowser.Server.Implementations.BdInfo
|
|||||||
Index = streams.Count
|
Index = streams.Count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var bitrate = Convert.ToInt32(audioStream.BitRate);
|
||||||
|
|
||||||
|
if (bitrate > 0)
|
||||||
|
{
|
||||||
|
stream.BitRate = bitrate;
|
||||||
|
}
|
||||||
|
|
||||||
if (audioStream.LFE > 0)
|
if (audioStream.LFE > 0)
|
||||||
{
|
{
|
||||||
stream.Channels = audioStream.ChannelCount + 1;
|
stream.Channels = audioStream.ChannelCount + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user