fixed last fm image provider downloading images over and over

This commit is contained in:
Luke Pulverenti 2013-10-16 16:49:44 -04:00
parent 62621bf97b
commit efeaa59512
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ namespace MediaBrowser.Providers.Music
{ {
var url = GetImageUrl(item); var url = GetImageUrl(item);
if (!string.IsNullOrWhiteSpace(url)) if (!string.IsNullOrWhiteSpace(url) && !item.HasImage(ImageType.Primary))
{ {
await _providerManager.SaveImage(item, url, LastfmBaseProvider.LastfmResourcePool, ImageType.Primary, null, cancellationToken) await _providerManager.SaveImage(item, url, LastfmBaseProvider.LastfmResourcePool, ImageType.Primary, null, cancellationToken)
.ConfigureAwait(false); .ConfigureAwait(false);

View File

@ -75,7 +75,7 @@ namespace MediaBrowser.Providers.Music
{ {
return item.LocationType == LocationType.FileSystem && item.ResolveArgs.ContainsMetaFileByName("artist.xml"); return item.LocationType == LocationType.FileSystem && item.ResolveArgs.ContainsMetaFileByName("artist.xml");
} }
/// <summary> /// <summary>
/// Finds the id. /// Finds the id.
/// </summary> /// </summary>