From b1f0addc6cd1071e00bbb257ff383d14d5d9d723 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 29 Jun 2013 11:47:36 -0400 Subject: [PATCH] go directly to music brainz --- MediaBrowser.Api/Images/ImageService.cs | 3 +++ .../Music/LastfmArtistProvider.cs | 20 +++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs index 46dac4070a..70f87e470b 100644 --- a/MediaBrowser.Api/Images/ImageService.cs +++ b/MediaBrowser.Api/Images/ImageService.cs @@ -783,6 +783,9 @@ namespace MediaBrowser.Api.Images imageIndex = entity.BackdropImagePaths.Count; } + // Handle image/png; charset=utf-8 + mimeType = mimeType.Split(';').FirstOrDefault(); + await _providerManager.SaveImage(entity, memoryStream, mimeType, imageType, imageIndex, CancellationToken.None).ConfigureAwait(false); await entity.RefreshMetadata(CancellationToken.None, forceRefresh: true, forceSave: true, allowSlowProviders: false).ConfigureAwait(false); diff --git a/MediaBrowser.Providers/Music/LastfmArtistProvider.cs b/MediaBrowser.Providers/Music/LastfmArtistProvider.cs index ce1e0f4677..b01fa12560 100644 --- a/MediaBrowser.Providers/Music/LastfmArtistProvider.cs +++ b/MediaBrowser.Providers/Music/LastfmArtistProvider.cs @@ -78,16 +78,16 @@ namespace MediaBrowser.Providers.Music } } - // Try to find the id using last fm - var result = await FindIdFromLastFm(item, cancellationToken).ConfigureAwait(false); - - if (result != null) - { - if (!string.IsNullOrEmpty(result)) - { - return result; - } - } + //// Try to find the id using last fm + //var result = await FindIdFromLastFm(item, cancellationToken).ConfigureAwait(false); + + //if (result != null) + //{ + // if (!string.IsNullOrEmpty(result)) + // { + // return result; + // } + //} try {