fixed last fm image provider downloading images over and over
This commit is contained in:
parent
62621bf97b
commit
efeaa59512
|
@ -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);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user