diff --git a/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs index ca9db0bf0..1a05f38fa 100644 --- a/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs +++ b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs @@ -64,9 +64,7 @@ namespace MediaBrowser.Model.Configuration EnableAutoUpdate = true; LogFileRetentionDays = 3; -#if (DEBUG) EnableDebugLevelLogging = true; -#endif } } } diff --git a/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs b/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs index a6dab60b0..eefa1a2f4 100644 --- a/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs +++ b/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs @@ -113,8 +113,6 @@ namespace MediaBrowser.Providers.Music var path = GetArtistInfoPath(_config.ApplicationPaths, musicBrainzId); - Directory.CreateDirectory(Path.GetDirectoryName(path)); - using (var response = await _httpClient.Get(new HttpRequestOptions { Url = url, @@ -123,6 +121,8 @@ namespace MediaBrowser.Providers.Music }).ConfigureAwait(false)) { + Directory.CreateDirectory(Path.GetDirectoryName(path)); + using (var xmlFileStream = _fileSystem.GetFileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read, true)) { await response.CopyToAsync(xmlFileStream).ConfigureAwait(false); diff --git a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs index 6748c2ba5..70946db36 100644 --- a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs +++ b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs @@ -154,6 +154,11 @@ namespace MediaBrowser.Providers.Music result.HasMetadata = true; } + if (!string.IsNullOrEmpty(releaseId) || !string.IsNullOrEmpty(releaseGroupId)) + { + result.HasMetadata = true; + } + if (result.HasMetadata) { if (!string.IsNullOrEmpty(releaseId))