bottom line style update

pull/702/head
Luke Pulverenti 12 years ago
parent 72414c0410
commit d80c414c2a

@ -119,11 +119,14 @@ namespace MediaBrowser.Controller.Providers
BaseProviderInfo data; 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; return result;
} }

@ -73,11 +73,13 @@ namespace MediaBrowser.Controller.Providers.Music
} }
BaseProviderInfo data; 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<LastfmGetAlbumResult> GetAlbumResult(BaseItem item, CancellationToken cancellationToken) private async Task<LastfmGetAlbumResult> GetAlbumResult(BaseItem item, CancellationToken cancellationToken)

Loading…
Cancel
Save