|
|
@ -72,6 +72,7 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
/// <returns>Task{Artist}.</returns>
|
|
|
|
/// <returns>Task{Artist}.</returns>
|
|
|
|
MusicArtist GetArtist(string name);
|
|
|
|
MusicArtist GetArtist(string name);
|
|
|
|
|
|
|
|
|
|
|
|
MusicArtist GetArtist(string name, DtoOptions options);
|
|
|
|
MusicArtist GetArtist(string name, DtoOptions options);
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a Studio.
|
|
|
|
/// Gets a Studio.
|
|
|
@ -124,7 +125,7 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
void QueueLibraryScan();
|
|
|
|
void QueueLibraryScan();
|
|
|
|
|
|
|
|
|
|
|
|
void UpdateImages(BaseItem item, bool forceUpdate = false);
|
|
|
|
Task UpdateImagesAsync(BaseItem item, bool forceUpdate = false);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the default view.
|
|
|
|
/// Gets the default view.
|
|
|
@ -179,6 +180,7 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <param name="sortOrder">The sort order.</param>
|
|
|
|
/// <param name="sortOrder">The sort order.</param>
|
|
|
|
/// <returns>IEnumerable{BaseItem}.</returns>
|
|
|
|
/// <returns>IEnumerable{BaseItem}.</returns>
|
|
|
|
IEnumerable<BaseItem> Sort(IEnumerable<BaseItem> items, User user, IEnumerable<string> sortBy, SortOrder sortOrder);
|
|
|
|
IEnumerable<BaseItem> Sort(IEnumerable<BaseItem> items, User user, IEnumerable<string> sortBy, SortOrder sortOrder);
|
|
|
|
|
|
|
|
|
|
|
|
IEnumerable<BaseItem> Sort(IEnumerable<BaseItem> items, User user, IEnumerable<ValueTuple<string, SortOrder>> orderBy);
|
|
|
|
IEnumerable<BaseItem> Sort(IEnumerable<BaseItem> items, User user, IEnumerable<ValueTuple<string, SortOrder>> orderBy);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -200,9 +202,16 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Updates the item.
|
|
|
|
/// Updates the item.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
void UpdateItems(IReadOnlyList<BaseItem> items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken);
|
|
|
|
Task UpdateItemsAsync(IReadOnlyList<BaseItem> items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
void UpdateItem(BaseItem item, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Updates the item.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
|
|
|
/// <param name="parent">The parent item.</param>
|
|
|
|
|
|
|
|
/// <param name="updateReason">The update reason.</param>
|
|
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
|
|
Task UpdateItemAsync(BaseItem item, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Retrieves the item.
|
|
|
|
/// Retrieves the item.
|
|
|
@ -317,7 +326,8 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
UserView GetNamedView(string name,
|
|
|
|
UserView GetNamedView(
|
|
|
|
|
|
|
|
string name,
|
|
|
|
string viewType,
|
|
|
|
string viewType,
|
|
|
|
string sortName);
|
|
|
|
string sortName);
|
|
|
|
|
|
|
|
|
|
|
@ -329,7 +339,8 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
/// <param name="uniqueId">The unique identifier.</param>
|
|
|
|
/// <param name="uniqueId">The unique identifier.</param>
|
|
|
|
UserView GetNamedView(string name,
|
|
|
|
UserView GetNamedView(
|
|
|
|
|
|
|
|
string name,
|
|
|
|
Guid parentId,
|
|
|
|
Guid parentId,
|
|
|
|
string viewType,
|
|
|
|
string viewType,
|
|
|
|
string sortName,
|
|
|
|
string sortName,
|
|
|
@ -341,7 +352,8 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <param name="parent">The parent.</param>
|
|
|
|
/// <param name="parent">The parent.</param>
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
|
|
|
/// <param name="viewType">Type of the view.</param>
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
/// <param name="sortName">Name of the sort.</param>
|
|
|
|
UserView GetShadowView(BaseItem parent,
|
|
|
|
UserView GetShadowView(
|
|
|
|
|
|
|
|
BaseItem parent,
|
|
|
|
string viewType,
|
|
|
|
string viewType,
|
|
|
|
string sortName);
|
|
|
|
string sortName);
|
|
|
|
|
|
|
|
|
|
|
@ -393,7 +405,9 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <param name="fileSystemChildren">The file system children.</param>
|
|
|
|
/// <param name="fileSystemChildren">The file system children.</param>
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
/// <returns>IEnumerable<Trailer>.</returns>
|
|
|
|
/// <returns>IEnumerable<Trailer>.</returns>
|
|
|
|
IEnumerable<Video> FindTrailers(BaseItem owner, List<FileSystemMetadata> fileSystemChildren,
|
|
|
|
IEnumerable<Video> FindTrailers(
|
|
|
|
|
|
|
|
BaseItem owner,
|
|
|
|
|
|
|
|
List<FileSystemMetadata> fileSystemChildren,
|
|
|
|
IDirectoryService directoryService);
|
|
|
|
IDirectoryService directoryService);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -403,7 +417,9 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
/// <param name="fileSystemChildren">The file system children.</param>
|
|
|
|
/// <param name="fileSystemChildren">The file system children.</param>
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
/// <returns>IEnumerable<Video>.</returns>
|
|
|
|
/// <returns>IEnumerable<Video>.</returns>
|
|
|
|
IEnumerable<Video> FindExtras(BaseItem owner, List<FileSystemMetadata> fileSystemChildren,
|
|
|
|
IEnumerable<Video> FindExtras(
|
|
|
|
|
|
|
|
BaseItem owner,
|
|
|
|
|
|
|
|
List<FileSystemMetadata> fileSystemChildren,
|
|
|
|
IDirectoryService directoryService);
|
|
|
|
IDirectoryService directoryService);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -522,16 +538,25 @@ namespace MediaBrowser.Controller.Library
|
|
|
|
Guid GetMusicGenreId(string name);
|
|
|
|
Guid GetMusicGenreId(string name);
|
|
|
|
|
|
|
|
|
|
|
|
Task AddVirtualFolder(string name, string collectionType, LibraryOptions options, bool refreshLibrary);
|
|
|
|
Task AddVirtualFolder(string name, string collectionType, LibraryOptions options, bool refreshLibrary);
|
|
|
|
|
|
|
|
|
|
|
|
Task RemoveVirtualFolder(string name, bool refreshLibrary);
|
|
|
|
Task RemoveVirtualFolder(string name, bool refreshLibrary);
|
|
|
|
|
|
|
|
|
|
|
|
void AddMediaPath(string virtualFolderName, MediaPathInfo path);
|
|
|
|
void AddMediaPath(string virtualFolderName, MediaPathInfo path);
|
|
|
|
|
|
|
|
|
|
|
|
void UpdateMediaPath(string virtualFolderName, MediaPathInfo path);
|
|
|
|
void UpdateMediaPath(string virtualFolderName, MediaPathInfo path);
|
|
|
|
|
|
|
|
|
|
|
|
void RemoveMediaPath(string virtualFolderName, string path);
|
|
|
|
void RemoveMediaPath(string virtualFolderName, string path);
|
|
|
|
|
|
|
|
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetGenres(InternalItemsQuery query);
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetGenres(InternalItemsQuery query);
|
|
|
|
|
|
|
|
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetMusicGenres(InternalItemsQuery query);
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetMusicGenres(InternalItemsQuery query);
|
|
|
|
|
|
|
|
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetStudios(InternalItemsQuery query);
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetStudios(InternalItemsQuery query);
|
|
|
|
|
|
|
|
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetArtists(InternalItemsQuery query);
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetArtists(InternalItemsQuery query);
|
|
|
|
|
|
|
|
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetAlbumArtists(InternalItemsQuery query);
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetAlbumArtists(InternalItemsQuery query);
|
|
|
|
|
|
|
|
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetAllArtists(InternalItemsQuery query);
|
|
|
|
QueryResult<(BaseItem, ItemCounts)> GetAllArtists(InternalItemsQuery query);
|
|
|
|
|
|
|
|
|
|
|
|
int GetCount(InternalItemsQuery query);
|
|
|
|
int GetCount(InternalItemsQuery query);
|
|
|
|