From 9a820efde33b7a4cfe1dd3e5c37a2f1beaaec896 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 27 May 2013 12:53:10 -0400 Subject: fixes #280 - MB3 Local metadata fetcher for Music not seeing/using Artist Folder.jpg --- MediaBrowser.Controller/Library/ILibraryManager.cs | 4 +++- .../Library/ILibraryPostScanTask.cs | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 MediaBrowser.Controller/Library/ILibraryPostScanTask.cs (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index 90c96c1ee..f5abb8dcd 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -144,12 +144,14 @@ namespace MediaBrowser.Controller.Library /// The intro providers. /// The item comparers. /// The prescan tasks. + /// The postscan tasks. void AddParts(IEnumerable rules, IEnumerable pluginFolders, IEnumerable resolvers, IEnumerable introProviders, IEnumerable itemComparers, - IEnumerable prescanTasks); + IEnumerable prescanTasks, + IEnumerable postscanTasks); /// /// Sorts the specified items. diff --git a/MediaBrowser.Controller/Library/ILibraryPostScanTask.cs b/MediaBrowser.Controller/Library/ILibraryPostScanTask.cs new file mode 100644 index 000000000..694422907 --- /dev/null +++ b/MediaBrowser.Controller/Library/ILibraryPostScanTask.cs @@ -0,0 +1,20 @@ +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace MediaBrowser.Controller.Library +{ + /// + /// An interface for tasks that run after the media library scan + /// + public interface ILibraryPostScanTask + { + /// + /// Runs the specified progress. + /// + /// The progress. + /// The cancellation token. + /// Task. + Task Run(IProgress progress, CancellationToken cancellationToken); + } +} -- cgit v1.2.3