From fe2eb6cb01564662df01aef87afe2bff51971c1b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 4 Oct 2013 13:04:18 -0400 Subject: fixes #573 - Support media info for intros --- MediaBrowser.Controller/Library/IIntroProvider.cs | 22 +++++++++++++++++++--- MediaBrowser.Controller/Library/ILibraryManager.cs | 13 ++++++++++++- 2 files changed, 31 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/IIntroProvider.cs b/MediaBrowser.Controller/Library/IIntroProvider.cs index 990fa933c..224ca2271 100644 --- a/MediaBrowser.Controller/Library/IIntroProvider.cs +++ b/MediaBrowser.Controller/Library/IIntroProvider.cs @@ -1,4 +1,5 @@ using MediaBrowser.Controller.Entities; +using System; using System.Collections.Generic; namespace MediaBrowser.Controller.Library @@ -14,12 +15,27 @@ namespace MediaBrowser.Controller.Library /// The item. /// The user. /// IEnumerable{System.String}. - IEnumerable GetIntros(BaseItem item, User user); + IEnumerable GetIntros(BaseItem item, User user); /// - /// Gets all intros. + /// Gets all intro files. /// /// IEnumerable{System.String}. - IEnumerable GetAllIntros(); + IEnumerable GetAllIntroFiles(); + } + + public class IntroInfo + { + /// + /// Gets or sets the path. + /// + /// The path. + public string Path { get; set; } + + /// + /// Gets or sets the item id. + /// + /// The item id. + public Guid? ItemId { get; set; } } } diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index 3419bf5e0..f930385d3 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -48,6 +48,11 @@ namespace MediaBrowser.Controller.Library /// The root folder. AggregateFolder RootFolder { get; } + /// + /// Gets the person sync. + /// + /// The name. + /// Person. Person GetPersonSync(string name); /// @@ -143,7 +148,13 @@ namespace MediaBrowser.Controller.Library /// The item. /// The user. /// IEnumerable{System.String}. - IEnumerable GetIntros(BaseItem item, User user); + IEnumerable