From 4e9d4c44c7ecf38fc8cf788ad616bb18e27c3f97 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Fri, 5 Apr 2013 11:15:53 -0400 Subject: [PATCH] Fix blank mbid for not found albums #106 --- MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs | 2 +- MediaBrowser.Controller/Providers/Music/LastfmBaseProvider.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs b/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs index 7f2952c66..80eb20ccc 100644 --- a/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs +++ b/MediaBrowser.Controller/Providers/Music/LastfmAlbumProvider.cs @@ -14,7 +14,7 @@ namespace MediaBrowser.Controller.Providers.Music { public class LastfmAlbumProvider : LastfmBaseProvider { - private static readonly Task BlankId = Task.FromResult("0000"); + private static readonly Task BlankId = Task.FromResult(""); private readonly IProviderManager _providerManager; diff --git a/MediaBrowser.Controller/Providers/Music/LastfmBaseProvider.cs b/MediaBrowser.Controller/Providers/Music/LastfmBaseProvider.cs index ff4e66da0..f58bd3bb7 100644 --- a/MediaBrowser.Controller/Providers/Music/LastfmBaseProvider.cs +++ b/MediaBrowser.Controller/Providers/Music/LastfmBaseProvider.cs @@ -138,7 +138,7 @@ namespace MediaBrowser.Controller.Providers.Music protected virtual async Task FetchData(BaseItem item, CancellationToken cancellationToken) { var id = item.GetProviderId(MetadataProviders.Musicbrainz) ?? await FindId(item, cancellationToken).ConfigureAwait(false); - if (id != null) + if (!string.IsNullOrWhiteSpace(id)) { Logger.Debug("LastfmProvider - getting info for {0}", item.Name);