From d80c414c2a6d237778316df4ac736c7e9ef8d643 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 6 May 2013 09:21:34 -0400 Subject: [PATCH] bottom line style update --- MediaBrowser.Controller/Providers/ImagesByNameProvider.cs | 7 +++++-- .../Providers/Music/LastfmAlbumProvider.cs | 8 +++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs b/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs index 15e0ecfa89..64a9883780 100644 --- a/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs +++ b/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs @@ -119,11 +119,14 @@ namespace MediaBrowser.Controller.Providers BaseProviderInfo data; - if (item.ProviderData.TryGetValue(Id, out data)) + if (!item.ProviderData.TryGetValue(Id, out data)) { - data.Data = ConfigurationManager.ApplicationPaths.ItemsByNamePath.GetMD5(); + data = new BaseProviderInfo(); + item.ProviderData[Id] = data; } + data.Data = ConfigurationManager.ApplicationPaths.ItemsByNamePath.GetMD5(); + return result; } diff --git a/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs b/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs index 0cdd9b19b7..4fe8156259 100644 --- a/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs +++ b/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs @@ -73,11 +73,13 @@ namespace MediaBrowser.Controller.Providers.Music } BaseProviderInfo data; - - if (item.ProviderData.TryGetValue(Id, out data)) + if (!item.ProviderData.TryGetValue(Id, out data)) { - data.Data = GetComparisonData(item as MusicAlbum); + data = new BaseProviderInfo(); + item.ProviderData[Id] = data; } + + data.Data = GetComparisonData(item as MusicAlbum); } private async Task GetAlbumResult(BaseItem item, CancellationToken cancellationToken)