2013-05-03 06:10:11 +02:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2013-04-21 03:02:16 +02:00
|
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
2014-12-19 05:20:07 +01:00
|
|
|
|
using MediaBrowser.Controller.Entities.TV;
|
2014-02-13 06:11:54 +01:00
|
|
|
|
using MediaBrowser.Controller.Providers;
|
2013-03-03 17:53:58 +01:00
|
|
|
|
using MediaBrowser.Controller.Resolvers;
|
2013-03-10 05:22:36 +01:00
|
|
|
|
using MediaBrowser.Controller.Sorting;
|
2013-02-28 20:32:41 +01:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2013-03-02 03:44:46 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2013-05-03 06:10:11 +02:00
|
|
|
|
using System.IO;
|
2013-03-02 03:44:46 +01:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2013-02-28 20:32:41 +01:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
|
|
|
{
|
2013-05-21 05:16:43 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface ILibraryManager
|
|
|
|
|
/// </summary>
|
2013-02-28 20:32:41 +01:00
|
|
|
|
public interface ILibraryManager
|
|
|
|
|
{
|
2014-02-13 06:11:54 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Resolves the path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="fileInfo">The file information.</param>
|
|
|
|
|
/// <param name="parent">The parent.</param>
|
|
|
|
|
/// <returns>BaseItem.</returns>
|
2014-12-04 06:24:41 +01:00
|
|
|
|
BaseItem ResolvePath(FileSystemInfo fileInfo,
|
2014-12-22 07:50:29 +01:00
|
|
|
|
Folder parent = null);
|
2014-02-20 05:53:15 +01:00
|
|
|
|
|
2013-02-28 20:32:41 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Resolves a set of files into a list of BaseItem
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
|
/// <param name="files">The files.</param>
|
2014-02-13 06:11:54 +01:00
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
2013-02-28 20:32:41 +01:00
|
|
|
|
/// <param name="parent">The parent.</param>
|
2014-10-23 06:26:01 +02:00
|
|
|
|
/// <param name="collectionType">Type of the collection.</param>
|
2013-02-28 20:32:41 +01:00
|
|
|
|
/// <returns>List{``0}.</returns>
|
2014-12-04 06:24:41 +01:00
|
|
|
|
IEnumerable<BaseItem> ResolvePaths(IEnumerable<FileSystemInfo> files,
|
|
|
|
|
IDirectoryService directoryService,
|
|
|
|
|
Folder parent, string
|
|
|
|
|
collectionType = null);
|
2013-02-28 20:32:41 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the root folder.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The root folder.</value>
|
|
|
|
|
AggregateFolder RootFolder { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a Person
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>Task{Person}.</returns>
|
2013-09-17 04:08:18 +02:00
|
|
|
|
Person GetPerson(string name);
|
2013-02-28 20:32:41 +01:00
|
|
|
|
|
2013-04-21 03:02:16 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the artist.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>Task{Artist}.</returns>
|
2013-11-21 21:48:26 +01:00
|
|
|
|
MusicArtist GetArtist(string name);
|
2013-04-21 03:02:16 +02:00
|
|
|
|
|
2013-02-28 20:32:41 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a Studio
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>Task{Studio}.</returns>
|
2013-09-17 04:08:18 +02:00
|
|
|
|
Studio GetStudio(string name);
|
2013-02-28 20:32:41 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a Genre
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>Task{Genre}.</returns>
|
2013-09-17 04:08:18 +02:00
|
|
|
|
Genre GetGenre(string name);
|
2013-02-28 20:32:41 +01:00
|
|
|
|
|
2013-06-11 05:31:00 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the genre.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>Task{MusicGenre}.</returns>
|
2013-09-17 04:08:18 +02:00
|
|
|
|
MusicGenre GetMusicGenre(string name);
|
2013-07-01 19:17:33 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the game genre.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>Task{GameGenre}.</returns>
|
2013-09-17 04:08:18 +02:00
|
|
|
|
GameGenre GetGameGenre(string name);
|
|
|
|
|
|
2013-02-28 20:32:41 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a Year
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="value">The value.</param>
|
|
|
|
|
/// <returns>Task{Year}.</returns>
|
|
|
|
|
/// <exception cref="System.ArgumentOutOfRangeException"></exception>
|
2013-09-17 04:08:18 +02:00
|
|
|
|
Year GetYear(int value);
|
2013-02-28 20:32:41 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validate and refresh the People sub-set of the IBN.
|
|
|
|
|
/// The items are stored in the db but not loaded into memory until actually requested by an operation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task ValidatePeople(CancellationToken cancellationToken, IProgress<double> progress);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reloads the root media folder
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task ValidateMediaLibrary(IProgress<double> progress, CancellationToken cancellationToken);
|
|
|
|
|
|
2013-12-15 17:53:32 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Queues the library scan.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void QueueLibraryScan();
|
|
|
|
|
|
2013-02-28 20:32:41 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the default view.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>IEnumerable{VirtualFolderInfo}.</returns>
|
2015-01-21 04:54:45 +01:00
|
|
|
|
IEnumerable<VirtualFolderInfo> GetVirtualFolders();
|
2013-02-28 20:32:41 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the item by id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The id.</param>
|
|
|
|
|
/// <returns>BaseItem.</returns>
|
|
|
|
|
BaseItem GetItemById(Guid id);
|
|
|
|
|
|
2014-10-23 06:26:01 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the memory item by identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <returns>BaseItem.</returns>
|
|
|
|
|
BaseItem GetMemoryItemById(Guid id);
|
|
|
|
|
|
2013-03-02 03:44:46 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the intros.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
|
/// <returns>IEnumerable{System.String}.</returns>
|
2014-09-22 23:56:54 +02:00
|
|
|
|
Task<IEnumerable<Video>> GetIntros(BaseItem item, User user);
|
2013-10-04 19:04:18 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets all intro files.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>IEnumerable{System.String}.</returns>
|
|
|
|
|
IEnumerable<string> GetAllIntroFiles();
|
2013-03-02 03:44:46 +01:00
|
|
|
|
|
2013-03-01 22:22:34 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds the parts.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="rules">The rules.</param>
|
|
|
|
|
/// <param name="pluginFolders">The plugin folders.</param>
|
|
|
|
|
/// <param name="resolvers">The resolvers.</param>
|
2013-03-02 03:44:46 +01:00
|
|
|
|
/// <param name="introProviders">The intro providers.</param>
|
2013-03-10 05:22:36 +01:00
|
|
|
|
/// <param name="itemComparers">The item comparers.</param>
|
2013-05-27 18:53:10 +02:00
|
|
|
|
/// <param name="postscanTasks">The postscan tasks.</param>
|
2013-09-17 04:08:18 +02:00
|
|
|
|
void AddParts(IEnumerable<IResolverIgnoreRule> rules,
|
|
|
|
|
IEnumerable<IVirtualFolderCreator> pluginFolders,
|
|
|
|
|
IEnumerable<IItemResolver> resolvers,
|
|
|
|
|
IEnumerable<IIntroProvider> introProviders,
|
2013-05-21 05:16:43 +02:00
|
|
|
|
IEnumerable<IBaseItemComparer> itemComparers,
|
2014-02-10 00:08:01 +01:00
|
|
|
|
IEnumerable<ILibraryPostScanTask> postscanTasks);
|
2013-03-10 05:22:36 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sorts the specified items.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="items">The items.</param>
|
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
|
/// <param name="sortBy">The sort by.</param>
|
|
|
|
|
/// <param name="sortOrder">The sort order.</param>
|
|
|
|
|
/// <returns>IEnumerable{BaseItem}.</returns>
|
|
|
|
|
IEnumerable<BaseItem> Sort(IEnumerable<BaseItem> items, User user, IEnumerable<string> sortBy,
|
|
|
|
|
SortOrder sortOrder);
|
2013-03-12 05:26:23 +01:00
|
|
|
|
|
2013-03-15 20:08:49 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ensure supplied item has only one instance throughout
|
|
|
|
|
/// </summary>
|
2013-05-21 05:16:43 +02:00
|
|
|
|
/// <param name="item">The item.</param>
|
2013-03-15 20:08:49 +01:00
|
|
|
|
/// <returns>The proper instance to the item</returns>
|
|
|
|
|
BaseItem GetOrAddByReferenceItem(BaseItem item);
|
2013-04-05 06:12:35 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the user root folder.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>UserRootFolder.</returns>
|
2014-02-21 06:04:11 +01:00
|
|
|
|
Folder GetUserRootFolder();
|
2013-04-08 17:55:53 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-05-03 06:10:11 +02:00
|
|
|
|
/// Creates the item.
|
2013-04-08 17:55:53 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2013-05-03 06:10:11 +02:00
|
|
|
|
Task CreateItem(BaseItem item, CancellationToken cancellationToken);
|
2013-04-08 17:55:53 +02:00
|
|
|
|
|
2013-05-23 17:39:48 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates the items.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="items">The items.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task CreateItems(IEnumerable<BaseItem> items, CancellationToken cancellationToken);
|
|
|
|
|
|
2013-05-03 06:10:11 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Updates the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
2013-06-25 03:22:21 +02:00
|
|
|
|
/// <param name="updateReason">The update reason.</param>
|
2013-05-03 06:10:11 +02:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2013-06-25 03:22:21 +02:00
|
|
|
|
Task UpdateItem(BaseItem item, ItemUpdateType updateReason, CancellationToken cancellationToken);
|
2013-05-21 05:16:43 +02:00
|
|
|
|
|
2013-04-08 17:55:53 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Retrieves the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The id.</param>
|
2013-06-17 22:35:43 +02:00
|
|
|
|
/// <returns>BaseItem.</returns>
|
2013-06-26 18:08:16 +02:00
|
|
|
|
BaseItem RetrieveItem(Guid id);
|
2013-04-22 06:38:03 +02:00
|
|
|
|
|
2013-05-03 06:10:11 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [item added].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<ItemChangeEventArgs> ItemAdded;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [item updated].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<ItemChangeEventArgs> ItemUpdated;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [item removed].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<ItemChangeEventArgs> ItemRemoved;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reports the item removed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
void ReportItemRemoved(BaseItem item);
|
2013-07-12 21:56:40 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Finds the type of the collection.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <returns>System.String.</returns>
|
2014-12-21 19:58:17 +01:00
|
|
|
|
string GetContentType(BaseItem item);
|
2013-11-13 17:45:41 +01:00
|
|
|
|
|
2014-12-21 19:58:17 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the type of the inherited content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
|
string GetInheritedContentType(BaseItem item);
|
2015-01-10 02:38:01 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the type of the configured content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
|
string GetConfiguredContentType(BaseItem item);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the type of the configured content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">The path.</param>
|
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
|
string GetConfiguredContentType(string path);
|
2014-12-21 19:58:17 +01:00
|
|
|
|
|
2013-11-21 21:48:26 +01:00
|
|
|
|
/// <summary>
|
2014-01-01 19:26:31 +01:00
|
|
|
|
/// Normalizes the root path list.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="paths">The paths.</param>
|
|
|
|
|
/// <returns>IEnumerable{System.String}.</returns>
|
|
|
|
|
IEnumerable<string> NormalizeRootPathList(IEnumerable<string> paths);
|
2014-01-11 06:49:18 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Registers the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
void RegisterItem(BaseItem item);
|
2014-02-19 19:50:37 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Deletes the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
2014-02-20 05:53:15 +01:00
|
|
|
|
/// <param name="options">The options.</param>
|
2014-02-19 19:50:37 +01:00
|
|
|
|
/// <returns>Task.</returns>
|
2014-02-20 05:53:15 +01:00
|
|
|
|
Task DeleteItem(BaseItem item, DeleteOptions options);
|
2014-03-19 05:59:45 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Replaces the videos with primary versions.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="items">The items.</param>
|
|
|
|
|
/// <returns>IEnumerable{BaseItem}.</returns>
|
|
|
|
|
IEnumerable<BaseItem> ReplaceVideosWithPrimaryVersions(IEnumerable<BaseItem> items);
|
2014-06-07 21:46:24 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-10-29 23:01:02 +01:00
|
|
|
|
/// Gets the special folder.
|
2014-06-07 21:46:24 +02:00
|
|
|
|
/// </summary>
|
2014-10-29 23:01:02 +01:00
|
|
|
|
/// <param name="user">The user.</param>
|
2014-06-07 21:46:24 +02:00
|
|
|
|
/// <param name="name">The name.</param>
|
2014-10-29 23:01:02 +01:00
|
|
|
|
/// <param name="parentId">The parent identifier.</param>
|
2014-06-18 07:16:00 +02:00
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
2014-06-07 21:46:24 +02:00
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2014-10-29 23:01:02 +01:00
|
|
|
|
/// <returns>Task<UserView>.</returns>
|
|
|
|
|
Task<UserView> GetSpecialFolder(User user,
|
|
|
|
|
string name,
|
|
|
|
|
string parentId,
|
|
|
|
|
string viewType,
|
|
|
|
|
string sortName,
|
|
|
|
|
CancellationToken cancellationToken);
|
2014-09-05 05:48:53 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the named view.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task<UserView>.</returns>
|
2014-10-29 23:01:02 +01:00
|
|
|
|
Task<UserView> GetNamedView(string name,
|
|
|
|
|
string viewType,
|
|
|
|
|
string sortName,
|
|
|
|
|
CancellationToken cancellationToken);
|
2014-11-16 21:44:08 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether [is video file] [the specified path].
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">The path.</param>
|
|
|
|
|
/// <returns><c>true</c> if [is video file] [the specified path]; otherwise, <c>false</c>.</returns>
|
|
|
|
|
bool IsVideoFile(string path);
|
|
|
|
|
|
2014-11-16 23:46:01 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether [is audio file] [the specified path].
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">The path.</param>
|
|
|
|
|
/// <returns><c>true</c> if [is audio file] [the specified path]; otherwise, <c>false</c>.</returns>
|
2014-11-16 21:44:08 +01:00
|
|
|
|
bool IsAudioFile(string path);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the season number from path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">The path.</param>
|
|
|
|
|
/// <returns>System.Nullable<System.Int32>.</returns>
|
|
|
|
|
int? GetSeasonNumberFromPath(string path);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-12-19 05:20:07 +01:00
|
|
|
|
/// Fills the missing episode numbers from path.
|
2014-11-16 21:44:08 +01:00
|
|
|
|
/// </summary>
|
2014-12-19 05:20:07 +01:00
|
|
|
|
/// <param name="episode">The episode.</param>
|
|
|
|
|
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
|
|
|
|
bool FillMissingEpisodeNumbersFromPath(Episode episode);
|
2014-11-16 23:46:01 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Parses the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>ItemInfo.</returns>
|
|
|
|
|
ItemLookupInfo ParseName(string name);
|
2014-11-18 03:48:22 +01:00
|
|
|
|
|
2014-11-30 20:01:33 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the new item identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="key">The key.</param>
|
|
|
|
|
/// <param name="type">The type.</param>
|
|
|
|
|
/// <returns>Guid.</returns>
|
|
|
|
|
Guid GetNewItemId(string key, Type type);
|
2014-12-01 19:42:07 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Finds the trailers.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="owner">The owner.</param>
|
|
|
|
|
/// <param name="fileSystemChildren">The file system children.</param>
|
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
|
/// <returns>IEnumerable<Trailer>.</returns>
|
2014-12-03 04:13:03 +01:00
|
|
|
|
IEnumerable<Video> FindTrailers(BaseItem owner, List<FileSystemInfo> fileSystemChildren,
|
2014-12-01 19:42:07 +01:00
|
|
|
|
IDirectoryService directoryService);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Finds the extras.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="owner">The owner.</param>
|
|
|
|
|
/// <param name="fileSystemChildren">The file system children.</param>
|
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
|
/// <returns>IEnumerable<Video>.</returns>
|
|
|
|
|
IEnumerable<Video> FindExtras(BaseItem owner, List<FileSystemInfo> fileSystemChildren,
|
|
|
|
|
IDirectoryService directoryService);
|
2015-02-15 04:36:07 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the collection folders.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <returns>IEnumerable<Folder>.</returns>
|
|
|
|
|
IEnumerable<Folder> GetCollectionFolders(BaseItem item);
|
2014-02-20 05:53:15 +01:00
|
|
|
|
}
|
2013-02-28 20:32:41 +01:00
|
|
|
|
}
|