mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	deprecate options
This commit is contained in:
		
							parent
							
								
									422a9fab9d
								
							
						
					
					
						commit
						772dba319f
					
				@ -66,8 +66,6 @@ namespace MediaBrowser.Api
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            _config.Configuration.IsStartupWizardCompleted = true;
 | 
					            _config.Configuration.IsStartupWizardCompleted = true;
 | 
				
			||||||
            _config.Configuration.EnableLocalizedGuids = true;
 | 
					            _config.Configuration.EnableLocalizedGuids = true;
 | 
				
			||||||
            _config.Configuration.MergeMetadataAndImagesByName = true;
 | 
					 | 
				
			||||||
            _config.Configuration.EnableStandaloneMetadata = true;
 | 
					 | 
				
			||||||
            _config.Configuration.EnableCustomPathSubFolders = true;
 | 
					            _config.Configuration.EnableCustomPathSubFolders = true;
 | 
				
			||||||
            _config.Configuration.EnableDateLastRefresh = true;
 | 
					            _config.Configuration.EnableDateLastRefresh = true;
 | 
				
			||||||
            _config.SaveConfiguration();
 | 
					            _config.SaveConfiguration();
 | 
				
			||||||
 | 
				
			|||||||
@ -162,9 +162,6 @@ namespace MediaBrowser.Model.Configuration
 | 
				
			|||||||
        /// <value>The dashboard source path.</value>
 | 
					        /// <value>The dashboard source path.</value>
 | 
				
			||||||
        public string DashboardSourcePath { get; set; }
 | 
					        public string DashboardSourcePath { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public bool MergeMetadataAndImagesByName { get; set; }
 | 
					 | 
				
			||||||
        public bool EnableStandaloneMetadata { get; set; }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Gets or sets the image saving convention.
 | 
					        /// Gets or sets the image saving convention.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
 | 
				
			|||||||
@ -35,7 +35,6 @@ namespace MediaBrowser.Server.Implementations.Configuration
 | 
				
			|||||||
        public ServerConfigurationManager(IApplicationPaths applicationPaths, ILogManager logManager, IXmlSerializer xmlSerializer, IFileSystem fileSystem)
 | 
					        public ServerConfigurationManager(IApplicationPaths applicationPaths, ILogManager logManager, IXmlSerializer xmlSerializer, IFileSystem fileSystem)
 | 
				
			||||||
            : base(applicationPaths, logManager, xmlSerializer, fileSystem)
 | 
					            : base(applicationPaths, logManager, xmlSerializer, fileSystem)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            UpdateItemsByNamePath();
 | 
					 | 
				
			||||||
            UpdateMetadataPath();
 | 
					            UpdateMetadataPath();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -73,7 +72,6 @@ namespace MediaBrowser.Server.Implementations.Configuration
 | 
				
			|||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        protected override void OnConfigurationUpdated()
 | 
					        protected override void OnConfigurationUpdated()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            UpdateItemsByNamePath();
 | 
					 | 
				
			||||||
            UpdateMetadataPath();
 | 
					            UpdateMetadataPath();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            base.OnConfigurationUpdated();
 | 
					            base.OnConfigurationUpdated();
 | 
				
			||||||
@ -86,19 +84,6 @@ namespace MediaBrowser.Server.Implementations.Configuration
 | 
				
			|||||||
            UpdateTranscodingTempPath();
 | 
					            UpdateTranscodingTempPath();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					 | 
				
			||||||
        /// Updates the items by name path.
 | 
					 | 
				
			||||||
        /// </summary>
 | 
					 | 
				
			||||||
        private void UpdateItemsByNamePath()
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            if (!Configuration.MergeMetadataAndImagesByName)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                ((ServerApplicationPaths)ApplicationPaths).ItemsByNamePath = string.IsNullOrEmpty(Configuration.ItemsByNamePath) ?
 | 
					 | 
				
			||||||
                    null :
 | 
					 | 
				
			||||||
                    Configuration.ItemsByNamePath;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Updates the metadata path.
 | 
					        /// Updates the metadata path.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
@ -121,22 +106,14 @@ namespace MediaBrowser.Server.Implementations.Configuration
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = metadataPath;
 | 
					            ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = metadataPath;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (Configuration.MergeMetadataAndImagesByName)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
            ((ServerApplicationPaths)ApplicationPaths).ItemsByNamePath = ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath;
 | 
					            ((ServerApplicationPaths)ApplicationPaths).ItemsByNamePath = ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private string GetInternalMetadataPath()
 | 
					        private string GetInternalMetadataPath()
 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            if (Configuration.EnableStandaloneMetadata)
 | 
					 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return Path.Combine(ApplicationPaths.ProgramDataPath, "metadata");
 | 
					            return Path.Combine(ApplicationPaths.ProgramDataPath, "metadata");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return null;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Updates the transcoding temporary path.
 | 
					        /// Updates the transcoding temporary path.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user