Browse Source

update components

Luke Pulverenti 9 years ago
parent
commit
a59f146965

+ 0 - 2
MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs

@@ -64,9 +64,7 @@ namespace MediaBrowser.Model.Configuration
             EnableAutoUpdate = true;
             EnableAutoUpdate = true;
             LogFileRetentionDays = 3;
             LogFileRetentionDays = 3;
 
 
-#if (DEBUG)
             EnableDebugLevelLogging = true;
             EnableDebugLevelLogging = true;
-#endif
         }
         }
     }
     }
 }
 }

+ 2 - 2
MediaBrowser.Providers/Music/AudioDbArtistProvider.cs

@@ -113,8 +113,6 @@ namespace MediaBrowser.Providers.Music
 
 
             var path = GetArtistInfoPath(_config.ApplicationPaths, musicBrainzId);
             var path = GetArtistInfoPath(_config.ApplicationPaths, musicBrainzId);
 
 
-            Directory.CreateDirectory(Path.GetDirectoryName(path));
-
             using (var response = await _httpClient.Get(new HttpRequestOptions
             using (var response = await _httpClient.Get(new HttpRequestOptions
             {
             {
                 Url = url,
                 Url = url,
@@ -123,6 +121,8 @@ namespace MediaBrowser.Providers.Music
 
 
             }).ConfigureAwait(false))
             }).ConfigureAwait(false))
             {
             {
+                Directory.CreateDirectory(Path.GetDirectoryName(path));
+
                 using (var xmlFileStream = _fileSystem.GetFileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read, true))
                 using (var xmlFileStream = _fileSystem.GetFileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read, true))
                 {
                 {
                     await response.CopyToAsync(xmlFileStream).ConfigureAwait(false);
                     await response.CopyToAsync(xmlFileStream).ConfigureAwait(false);

+ 5 - 0
MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs

@@ -154,6 +154,11 @@ namespace MediaBrowser.Providers.Music
                 result.HasMetadata = true;
                 result.HasMetadata = true;
             }
             }
 
 
+            if (!string.IsNullOrEmpty(releaseId) || !string.IsNullOrEmpty(releaseGroupId))
+            {
+                result.HasMetadata = true;
+            }
+
             if (result.HasMetadata)
             if (result.HasMetadata)
             {
             {
                 if (!string.IsNullOrEmpty(releaseId))
                 if (!string.IsNullOrEmpty(releaseId))