mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
rework web client quality options
This commit is contained in:
parent
2864e4a339
commit
b47a9018b6
@ -1,4 +1,5 @@
|
|||||||
using MediaBrowser.Common.Configuration;
|
using System.Text;
|
||||||
|
using MediaBrowser.Common.Configuration;
|
||||||
using MediaBrowser.Common.Events;
|
using MediaBrowser.Common.Events;
|
||||||
using MediaBrowser.Common.Implementations.Archiving;
|
using MediaBrowser.Common.Implementations.Archiving;
|
||||||
using MediaBrowser.Common.Implementations.IO;
|
using MediaBrowser.Common.Implementations.IO;
|
||||||
@ -196,14 +197,18 @@ namespace MediaBrowser.Common.Implementations
|
|||||||
|
|
||||||
JsonSerializer = CreateJsonSerializer();
|
JsonSerializer = CreateJsonSerializer();
|
||||||
|
|
||||||
|
Logger = LogManager.GetLogger("App");
|
||||||
|
|
||||||
IsFirstRun = !ConfigurationManager.CommonConfiguration.IsStartupWizardCompleted;
|
IsFirstRun = !ConfigurationManager.CommonConfiguration.IsStartupWizardCompleted;
|
||||||
progress.Report(2);
|
progress.Report(2);
|
||||||
|
|
||||||
Logger = LogManager.GetLogger("App");
|
|
||||||
|
|
||||||
LogManager.LogSeverity = ConfigurationManager.CommonConfiguration.EnableDebugLevelLogging
|
LogManager.LogSeverity = ConfigurationManager.CommonConfiguration.EnableDebugLevelLogging
|
||||||
? LogSeverity.Debug
|
? LogSeverity.Debug
|
||||||
: LogSeverity.Info;
|
: LogSeverity.Info;
|
||||||
|
|
||||||
|
// Put the app config in the log for troubleshooting purposes
|
||||||
|
Logger.LogMultiline("Application Configuration:", LogSeverity.Info, new StringBuilder(JsonSerializer.SerializeToString(ConfigurationManager.CommonConfiguration)));
|
||||||
|
|
||||||
progress.Report(3);
|
progress.Report(3);
|
||||||
|
|
||||||
DiscoverTypes();
|
DiscoverTypes();
|
||||||
|
@ -68,7 +68,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
audio.HasEmbeddedImage = mediaStreams.Any(i => i.Type == MediaStreamType.Video);
|
audio.HasEmbeddedImage = mediaStreams.Any(i => i.Type == MediaStreamType.Video);
|
||||||
|
|
||||||
// Get the first audio stream
|
// Get the first audio stream
|
||||||
var stream = internalStreams.FirstOrDefault(s => s.codec_type.Equals("audio", StringComparison.OrdinalIgnoreCase));
|
var stream = internalStreams.FirstOrDefault(s => string.Equals(s.codec_type, "audio", StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
if (stream != null)
|
if (stream != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user