/// <summary> /// Gets the user data key. /// </summary> /// <param name="item">The item.</param> /// <returns>System.String.</returns> private static string GetUserDataKey(MusicArtist item) { var id = item.GetProviderId(MetadataProviders.MusicBrainzArtist); if (!string.IsNullOrEmpty(id)) { return("Artist-Musicbrainz-" + id); } return("Artist-" + item.Name); }
/// <summary> /// Gets the user data key. /// </summary> /// <param name="item">The item.</param> /// <returns>System.String.</returns> private static List <string> GetUserDataKeys(MusicArtist item) { var list = new List <string>(); var id = item.GetProviderId(MetadataProviders.MusicBrainzArtist); if (!string.IsNullOrEmpty(id)) { list.Add("Artist-Musicbrainz-" + id); } list.Add("Artist-" + (item.Name ?? string.Empty).RemoveDiacritics()); return(list); }
/// <summary> /// Gets the user data key. /// </summary> /// <param name="item">The item.</param> /// <returns>System.String.</returns> private static string GetUserDataKey(MusicArtist item) { var id = item.GetProviderId(MetadataProviders.Musicbrainz); if (!string.IsNullOrEmpty(id)) { return "Artist-Musicbrainz-" + id; } return "Artist-" + item.Name; }