Fix blank mbid for not found albums #106

This commit is contained in:
Eric Reed 2013-04-05 11:15:53 -04:00
parent ddf464720e
commit 4e9d4c44c7
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace MediaBrowser.Controller.Providers.Music
{
public class LastfmAlbumProvider : LastfmBaseProvider
{
private static readonly Task<string> BlankId = Task.FromResult("0000");
private static readonly Task<string> BlankId = Task.FromResult("");
private readonly IProviderManager _providerManager;

View File

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