bottom line style update

This commit is contained in:
Luke Pulverenti 2013-05-06 09:21:34 -04:00
parent 72414c0410
commit d80c414c2a
2 changed files with 10 additions and 5 deletions

View File

@ -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;
}

View File

@ -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<LastfmGetAlbumResult> GetAlbumResult(BaseItem item, CancellationToken cancellationToken)