mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Rename Name to ProviderName
This commit is contained in:
		
							parent
							
								
									c82f7eeca1
								
							
						
					
					
						commit
						d06fee75b6
					
				@ -11,7 +11,7 @@ namespace MediaBrowser.Controller.Providers
 | 
				
			|||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Gets the display name of the provider associated with this ID type.
 | 
					        /// Gets the display name of the provider associated with this ID type.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        string Name { get; }
 | 
					        string ProviderName { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Gets the unique key to distinguish this provider/type pair. This should be unique across providers.
 | 
					        /// Gets the unique key to distinguish this provider/type pair. This should be unique across providers.
 | 
				
			||||||
@ -24,7 +24,7 @@ namespace MediaBrowser.Controller.Providers
 | 
				
			|||||||
        /// external id types for providers with multiple ids.
 | 
					        /// external id types for providers with multiple ids.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <remarks>
 | 
					        /// <remarks>
 | 
				
			||||||
        /// This can be used along with the <see cref="Name"/> to localize the external id on the client.
 | 
					        /// This can be used along with the <see cref="ProviderName"/> to localize the external id on the client.
 | 
				
			||||||
        /// </remarks>
 | 
					        /// </remarks>
 | 
				
			||||||
        ExternalIdMediaType Type { get; }
 | 
					        ExternalIdMediaType Type { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -8,6 +8,7 @@ namespace MediaBrowser.Model.Providers
 | 
				
			|||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
 | 
					        /// Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        // TODO: This should be renamed to ProviderName
 | 
				
			||||||
        public string Name { get; set; }
 | 
					        public string Name { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
 | 
				
			|||||||
@ -96,7 +96,7 @@ namespace MediaBrowser.Providers.Manager
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            _metadataServices = metadataServices.OrderBy(i => i.Order).ToArray();
 | 
					            _metadataServices = metadataServices.OrderBy(i => i.Order).ToArray();
 | 
				
			||||||
            _metadataProviders = metadataProviders.ToArray();
 | 
					            _metadataProviders = metadataProviders.ToArray();
 | 
				
			||||||
            _externalIds = externalIds.OrderBy(i => i.Name).ToArray();
 | 
					            _externalIds = externalIds.OrderBy(i => i.ProviderName).ToArray();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            _savers = metadataSavers.Where(i =>
 | 
					            _savers = metadataSavers.Where(i =>
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
@ -891,7 +891,7 @@ namespace MediaBrowser.Providers.Manager
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                return new ExternalUrl
 | 
					                return new ExternalUrl
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    Name = i.Name,
 | 
					                    Name = i.ProviderName,
 | 
				
			||||||
                    Url = string.Format(
 | 
					                    Url = string.Format(
 | 
				
			||||||
                        CultureInfo.InvariantCulture,
 | 
					                        CultureInfo.InvariantCulture,
 | 
				
			||||||
                        i.UrlFormatString,
 | 
					                        i.UrlFormatString,
 | 
				
			||||||
@ -906,7 +906,7 @@ namespace MediaBrowser.Providers.Manager
 | 
				
			|||||||
            return GetExternalIds(item)
 | 
					            return GetExternalIds(item)
 | 
				
			||||||
                .Select(i => new ExternalIdInfo
 | 
					                .Select(i => new ExternalIdInfo
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    Name = i.Name,
 | 
					                    Name = i.ProviderName,
 | 
				
			||||||
                    Key = i.Key,
 | 
					                    Key = i.Key,
 | 
				
			||||||
                    Type = i.Type,
 | 
					                    Type = i.Type,
 | 
				
			||||||
                    UrlFormatString = i.UrlFormatString
 | 
					                    UrlFormatString = i.UrlFormatString
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@ namespace MediaBrowser.Providers.Movies
 | 
				
			|||||||
    public class ImdbExternalId : IExternalId
 | 
					    public class ImdbExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "IMDb";
 | 
					        public string ProviderName => "IMDb";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Imdb.ToString();
 | 
					        public string Key => MetadataProviders.Imdb.ToString();
 | 
				
			||||||
@ -38,7 +38,7 @@ namespace MediaBrowser.Providers.Movies
 | 
				
			|||||||
    public class ImdbPersonExternalId : IExternalId
 | 
					    public class ImdbPersonExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "IMDb";
 | 
					        public string ProviderName => "IMDb";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Imdb.ToString();
 | 
					        public string Key => MetadataProviders.Imdb.ToString();
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@ namespace MediaBrowser.Providers.Music
 | 
				
			|||||||
    public class ImvdbId : IExternalId
 | 
					    public class ImvdbId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "IMVDb";
 | 
					        public string ProviderName => "IMVDb";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => "IMVDb";
 | 
					        public string Key => "IMVDb";
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
 | 
				
			|||||||
    public class AudioDbAlbumExternalId : IExternalId
 | 
					    public class AudioDbAlbumExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "TheAudioDb";
 | 
					        public string ProviderName => "TheAudioDb";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.AudioDbAlbum.ToString();
 | 
					        public string Key => MetadataProviders.AudioDbAlbum.ToString();
 | 
				
			||||||
@ -26,7 +26,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
 | 
				
			|||||||
    public class AudioDbOtherAlbumExternalId : IExternalId
 | 
					    public class AudioDbOtherAlbumExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "TheAudioDb";
 | 
					        public string ProviderName => "TheAudioDb";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.AudioDbAlbum.ToString();
 | 
					        public string Key => MetadataProviders.AudioDbAlbum.ToString();
 | 
				
			||||||
@ -44,7 +44,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
 | 
				
			|||||||
    public class AudioDbArtistExternalId : IExternalId
 | 
					    public class AudioDbArtistExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "TheAudioDb";
 | 
					        public string ProviderName => "TheAudioDb";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.AudioDbArtist.ToString();
 | 
					        public string Key => MetadataProviders.AudioDbArtist.ToString();
 | 
				
			||||||
@ -62,7 +62,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
 | 
				
			|||||||
    public class AudioDbOtherArtistExternalId : IExternalId
 | 
					    public class AudioDbOtherArtistExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "TheAudioDb";
 | 
					        public string ProviderName => "TheAudioDb";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.AudioDbArtist.ToString();
 | 
					        public string Key => MetadataProviders.AudioDbArtist.ToString();
 | 
				
			||||||
 | 
				
			|||||||
@ -9,7 +9,7 @@ namespace MediaBrowser.Providers.Music
 | 
				
			|||||||
    public class MusicBrainzReleaseGroupExternalId : IExternalId
 | 
					    public class MusicBrainzReleaseGroupExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "MusicBrainz";
 | 
					        public string ProviderName => "MusicBrainz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.MusicBrainzReleaseGroup.ToString();
 | 
					        public string Key => MetadataProviders.MusicBrainzReleaseGroup.ToString();
 | 
				
			||||||
@ -27,7 +27,7 @@ namespace MediaBrowser.Providers.Music
 | 
				
			|||||||
    public class MusicBrainzAlbumArtistExternalId : IExternalId
 | 
					    public class MusicBrainzAlbumArtistExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "MusicBrainz";
 | 
					        public string ProviderName => "MusicBrainz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.MusicBrainzAlbumArtist.ToString();
 | 
					        public string Key => MetadataProviders.MusicBrainzAlbumArtist.ToString();
 | 
				
			||||||
@ -45,7 +45,7 @@ namespace MediaBrowser.Providers.Music
 | 
				
			|||||||
    public class MusicBrainzAlbumExternalId : IExternalId
 | 
					    public class MusicBrainzAlbumExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "MusicBrainz";
 | 
					        public string ProviderName => "MusicBrainz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.MusicBrainzAlbum.ToString();
 | 
					        public string Key => MetadataProviders.MusicBrainzAlbum.ToString();
 | 
				
			||||||
@ -63,7 +63,7 @@ namespace MediaBrowser.Providers.Music
 | 
				
			|||||||
    public class MusicBrainzArtistExternalId : IExternalId
 | 
					    public class MusicBrainzArtistExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "MusicBrainz";
 | 
					        public string ProviderName => "MusicBrainz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.MusicBrainzArtist.ToString();
 | 
					        public string Key => MetadataProviders.MusicBrainzArtist.ToString();
 | 
				
			||||||
@ -81,7 +81,7 @@ namespace MediaBrowser.Providers.Music
 | 
				
			|||||||
    public class MusicBrainzOtherArtistExternalId : IExternalId
 | 
					    public class MusicBrainzOtherArtistExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "MusicBrainz";
 | 
					        public string ProviderName => "MusicBrainz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -100,7 +100,7 @@ namespace MediaBrowser.Providers.Music
 | 
				
			|||||||
    public class MusicBrainzTrackId : IExternalId
 | 
					    public class MusicBrainzTrackId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "MusicBrainz";
 | 
					        public string ProviderName => "MusicBrainz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.MusicBrainzTrack.ToString();
 | 
					        public string Key => MetadataProviders.MusicBrainzTrack.ToString();
 | 
				
			||||||
 | 
				
			|||||||
@ -9,7 +9,7 @@ namespace MediaBrowser.Providers.TV
 | 
				
			|||||||
    public class Zap2ItExternalId : IExternalId
 | 
					    public class Zap2ItExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "Zap2It";
 | 
					        public string ProviderName => "Zap2It";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Zap2It.ToString();
 | 
					        public string Key => MetadataProviders.Zap2It.ToString();
 | 
				
			||||||
@ -27,7 +27,7 @@ namespace MediaBrowser.Providers.TV
 | 
				
			|||||||
    public class TvdbExternalId : IExternalId
 | 
					    public class TvdbExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "TheTVDB";
 | 
					        public string ProviderName => "TheTVDB";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Tvdb.ToString();
 | 
					        public string Key => MetadataProviders.Tvdb.ToString();
 | 
				
			||||||
@ -46,7 +46,7 @@ namespace MediaBrowser.Providers.TV
 | 
				
			|||||||
    public class TvdbSeasonExternalId : IExternalId
 | 
					    public class TvdbSeasonExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "TheTVDB";
 | 
					        public string ProviderName => "TheTVDB";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Tvdb.ToString();
 | 
					        public string Key => MetadataProviders.Tvdb.ToString();
 | 
				
			||||||
@ -64,7 +64,7 @@ namespace MediaBrowser.Providers.TV
 | 
				
			|||||||
    public class TvdbEpisodeExternalId : IExternalId
 | 
					    public class TvdbEpisodeExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "TheTVDB";
 | 
					        public string ProviderName => "TheTVDB";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Tvdb.ToString();
 | 
					        public string Key => MetadataProviders.Tvdb.ToString();
 | 
				
			||||||
 | 
				
			|||||||
@ -9,7 +9,7 @@ namespace MediaBrowser.Providers.Tmdb.BoxSets
 | 
				
			|||||||
    public class TmdbBoxSetExternalId : IExternalId
 | 
					    public class TmdbBoxSetExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => TmdbUtils.ProviderName;
 | 
					        public string ProviderName => TmdbUtils.ProviderName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.TmdbCollection.ToString();
 | 
					        public string Key => MetadataProviders.TmdbCollection.ToString();
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ namespace MediaBrowser.Providers.Tmdb.Movies
 | 
				
			|||||||
    public class TmdbMovieExternalId : IExternalId
 | 
					    public class TmdbMovieExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => TmdbUtils.ProviderName;
 | 
					        public string ProviderName => TmdbUtils.ProviderName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Tmdb.ToString();
 | 
					        public string Key => MetadataProviders.Tmdb.ToString();
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@ namespace MediaBrowser.Providers.Tmdb.People
 | 
				
			|||||||
    public class TmdbPersonExternalId : IExternalId
 | 
					    public class TmdbPersonExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => TmdbUtils.ProviderName;
 | 
					        public string ProviderName => TmdbUtils.ProviderName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Tmdb.ToString();
 | 
					        public string Key => MetadataProviders.Tmdb.ToString();
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@ namespace MediaBrowser.Providers.Tmdb.TV
 | 
				
			|||||||
    public class TmdbSeriesExternalId : IExternalId
 | 
					    public class TmdbSeriesExternalId : IExternalId
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => TmdbUtils.ProviderName;
 | 
					        public string ProviderName => TmdbUtils.ProviderName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Key => MetadataProviders.Tmdb.ToString();
 | 
					        public string Key => MetadataProviders.Tmdb.ToString();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user