From 740a10a4e3f85ffcfd26ec18263d4c78d4b14ecc Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 10 Sep 2013 14:56:00 -0400 Subject: de-normalize item by name data. create counts during library scan for fast access. --- .../ScheduledTasks/ArtistValidationTask.cs | 81 ---------------------- 1 file changed, 81 deletions(-) delete mode 100644 MediaBrowser.Server.Implementations/ScheduledTasks/ArtistValidationTask.cs (limited to 'MediaBrowser.Server.Implementations/ScheduledTasks') diff --git a/MediaBrowser.Server.Implementations/ScheduledTasks/ArtistValidationTask.cs b/MediaBrowser.Server.Implementations/ScheduledTasks/ArtistValidationTask.cs deleted file mode 100644 index a67db1b2d..000000000 --- a/MediaBrowser.Server.Implementations/ScheduledTasks/ArtistValidationTask.cs +++ /dev/null @@ -1,81 +0,0 @@ -using MediaBrowser.Common.ScheduledTasks; -using MediaBrowser.Controller.Library; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace MediaBrowser.Server.Implementations.ScheduledTasks -{ - public class ArtistValidationTask - { - /// - /// The _library manager - /// - private readonly ILibraryManager _libraryManager; - - /// - /// Initializes a new instance of the class. - /// - /// The library manager. - public ArtistValidationTask(ILibraryManager libraryManager) - { - _libraryManager = libraryManager; - } - - /// - /// Creates the triggers that define when the task will run - /// - /// IEnumerable{BaseTaskTrigger}. - public IEnumerable GetDefaultTriggers() - { - return new ITaskTrigger[] - { - new DailyTrigger { TimeOfDay = TimeSpan.FromHours(5) }, - - new IntervalTrigger{ Interval = TimeSpan.FromHours(12)} - }; - } - - /// - /// Returns the task to be executed - /// - /// The cancellation token. - /// The progress. - /// Task. - public Task Execute(CancellationToken cancellationToken, IProgress progress) - { - return _libraryManager.ValidateArtists(cancellationToken, progress); - } - - /// - /// Gets the name of the task - /// - /// The name. - public string Name - { - get { return "Refresh music artists"; } - } - - /// - /// Gets the description. - /// - /// The description. - public string Description - { - get { return "Updates metadata for music artists in your media library."; } - } - - /// - /// Gets the category. - /// - /// The category. - public string Category - { - get - { - return "Library"; - } - } - } -} -- cgit v1.2.3