Fix blank mbid for not found albums #106

pull/702/head
Eric Reed 12 years ago
parent ddf464720e
commit 4e9d4c44c7

@ -14,7 +14,7 @@ namespace MediaBrowser.Controller.Providers.Music
{ {
public class LastfmAlbumProvider : LastfmBaseProvider 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; private readonly IProviderManager _providerManager;

@ -138,7 +138,7 @@ namespace MediaBrowser.Controller.Providers.Music
protected virtual async Task FetchData(BaseItem item, CancellationToken cancellationToken) protected virtual async Task FetchData(BaseItem item, CancellationToken cancellationToken)
{ {
var id = item.GetProviderId(MetadataProviders.Musicbrainz) ?? await FindId(item, cancellationToken).ConfigureAwait(false); 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); Logger.Debug("LastfmProvider - getting info for {0}", item.Name);

Loading…
Cancel
Save