mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	update task names and descriptions
This commit is contained in:
		
							parent
							
								
									b3811a9498
								
							
						
					
					
						commit
						ab2349ff3c
					
				@ -70,7 +70,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Returns the task to be executed
 | 
					        /// Returns the task to be executed.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <param name="cancellationToken">The cancellation token.</param>
 | 
					        /// <param name="cancellationToken">The cancellation token.</param>
 | 
				
			||||||
        /// <param name="progress">The progress.</param>
 | 
					        /// <param name="progress">The progress.</param>
 | 
				
			||||||
@ -89,7 +89,6 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
                SourceTypes = new SourceType[] { SourceType.Library },
 | 
					                SourceTypes = new SourceType[] { SourceType.Library },
 | 
				
			||||||
                HasChapterImages = false,
 | 
					                HasChapterImages = false,
 | 
				
			||||||
                IsVirtualItem = false
 | 
					                IsVirtualItem = false
 | 
				
			||||||
 | 
					 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
                .OfType<Video>()
 | 
					                .OfType<Video>()
 | 
				
			||||||
                .ToList();
 | 
					                .ToList();
 | 
				
			||||||
@ -160,7 +159,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Name => "Chapter image extraction";
 | 
					        public string Name => "Extract Chapter Images";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Description => "Creates thumbnails for videos that have chapters.";
 | 
					        public string Description => "Creates thumbnails for videos that have chapters.";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -158,9 +158,9 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Name => "Cache file cleanup";
 | 
					        public string Name => "Clean Cache Directory";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Description => "Deletes cache files no longer needed by the system";
 | 
					        public string Description => "Deletes cache files no longer needed by the system.";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Category => "Maintenance";
 | 
					        public string Category => "Maintenance";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ using MediaBrowser.Model.Tasks;
 | 
				
			|||||||
namespace Emby.Server.Implementations.ScheduledTasks.Tasks
 | 
					namespace Emby.Server.Implementations.ScheduledTasks.Tasks
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    /// <summary>
 | 
					    /// <summary>
 | 
				
			||||||
    /// Deletes old log files
 | 
					    /// Deletes old log files.
 | 
				
			||||||
    /// </summary>
 | 
					    /// </summary>
 | 
				
			||||||
    public class DeleteLogFileTask : IScheduledTask, IConfigurableScheduledTask
 | 
					    public class DeleteLogFileTask : IScheduledTask, IConfigurableScheduledTask
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@ -33,20 +33,18 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Creates the triggers that define when the task will run
 | 
					        /// Creates the triggers that define when the task will run.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <returns>IEnumerable{BaseTaskTrigger}.</returns>
 | 
					        /// <returns>IEnumerable{BaseTaskTrigger}.</returns>
 | 
				
			||||||
        public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
 | 
					        public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return new[] {
 | 
					            return new[] {
 | 
				
			||||||
 | 
					 | 
				
			||||||
                // Every so often
 | 
					 | 
				
			||||||
                new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks}
 | 
					                new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks}
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Returns the task to be executed
 | 
					        /// Returns the task to be executed.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <param name="cancellationToken">The cancellation token.</param>
 | 
					        /// <param name="cancellationToken">The cancellation token.</param>
 | 
				
			||||||
        /// <param name="progress">The progress.</param>
 | 
					        /// <param name="progress">The progress.</param>
 | 
				
			||||||
@ -81,7 +79,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
 | 
				
			|||||||
            return Task.CompletedTask;
 | 
					            return Task.CompletedTask;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Name => "Log file cleanup";
 | 
					        public string Name => "Clean Log Directory";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Description => string.Format("Deletes log files that are more than {0} days old.", ConfigurationManager.CommonConfiguration.LogFileRetentionDays);
 | 
					        public string Description => string.Format("Deletes log files that are more than {0} days old.", ConfigurationManager.CommonConfiguration.LogFileRetentionDays);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -125,9 +125,9 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Name => "Transcode file cleanup";
 | 
					        public string Name => "Clean Transcode Directory";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Description => "Deletes transcode files more than 24 hours old.";
 | 
					        public string Description => "Deletes transcode files more than one day old.";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Category => "Maintenance";
 | 
					        public string Category => "Maintenance";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -9,12 +9,12 @@ using MediaBrowser.Model.Tasks;
 | 
				
			|||||||
namespace Emby.Server.Implementations.ScheduledTasks
 | 
					namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    /// <summary>
 | 
					    /// <summary>
 | 
				
			||||||
    /// Class PeopleValidationTask
 | 
					    /// Class PeopleValidationTask.
 | 
				
			||||||
    /// </summary>
 | 
					    /// </summary>
 | 
				
			||||||
    public class PeopleValidationTask : IScheduledTask
 | 
					    public class PeopleValidationTask : IScheduledTask
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// The _library manager
 | 
					        /// The library manager.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        private readonly ILibraryManager _libraryManager;
 | 
					        private readonly ILibraryManager _libraryManager;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -32,13 +32,12 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Creates the triggers that define when the task will run
 | 
					        /// Creates the triggers that define when the task will run.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
 | 
					        public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return new[]
 | 
					            return new[]
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                // Every so often
 | 
					 | 
				
			||||||
                new TaskTriggerInfo
 | 
					                new TaskTriggerInfo
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    Type = TaskTriggerInfo.TriggerInterval,
 | 
					                    Type = TaskTriggerInfo.TriggerInterval,
 | 
				
			||||||
@ -48,7 +47,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Returns the task to be executed
 | 
					        /// Returns the task to be executed.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <param name="cancellationToken">The cancellation token.</param>
 | 
					        /// <param name="cancellationToken">The cancellation token.</param>
 | 
				
			||||||
        /// <param name="progress">The progress.</param>
 | 
					        /// <param name="progress">The progress.</param>
 | 
				
			||||||
@ -58,7 +57,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
            return _libraryManager.ValidatePeople(cancellationToken, progress);
 | 
					            return _libraryManager.ValidatePeople(cancellationToken, progress);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Name => "Refresh people";
 | 
					        public string Name => "Refresh People";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Description => "Updates metadata for actors and directors in your media library.";
 | 
					        public string Description => "Updates metadata for actors and directors in your media library.";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -96,7 +96,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Name => "Check for plugin updates";
 | 
					        public string Name => "Update Plugins";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <inheritdoc />
 | 
					        /// <inheritdoc />
 | 
				
			||||||
        public string Description => "Downloads and installs updates for plugins that are configured to update automatically.";
 | 
					        public string Description => "Downloads and installs updates for plugins that are configured to update automatically.";
 | 
				
			||||||
 | 
				
			|||||||
@ -57,7 +57,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
 | 
				
			|||||||
            return ((LibraryManager)_libraryManager).ValidateMediaLibraryInternal(progress, cancellationToken);
 | 
					            return ((LibraryManager)_libraryManager).ValidateMediaLibraryInternal(progress, cancellationToken);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Name => "Scan media library";
 | 
					        public string Name => "Scan Media Library";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string Description => "Scans your media library for new files and refreshes metadata.";
 | 
					        public string Description => "Scans your media library for new files and refreshes metadata.";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user