LibraryApi

class LibraryApi(api: ApiClient) : Api

Constructors

Link copied to clipboard
constructor(api: ApiClient)

Functions

Link copied to clipboard
suspend fun deleteItem(itemId: UUID): Response<Unit>

Deletes an item from the library and filesystem.

Link copied to clipboard
suspend fun deleteItems(ids: Collection<UUID>? = emptyList()): Response<Unit>

Deletes items from the library and filesystem.

Link copied to clipboard
suspend fun getAncestors(itemId: UUID, userId: UUID? = null): Response<List<BaseItemDto>>

Gets all parents of an item.

Link copied to clipboard

Gets critic review for an item.

Link copied to clipboard
suspend fun getDownload(itemId: UUID): Response<ByteArray>

Downloads item media.

Link copied to clipboard
fun getDownloadUrl(itemId: UUID): String

Downloads item media.

Link copied to clipboard
suspend fun getFile(itemId: UUID): Response<ByteArray>

Get the original file of an item.

Link copied to clipboard
fun getFileUrl(itemId: UUID): String

Get the original file of an item.

Link copied to clipboard
suspend fun getItemCounts(userId: UUID? = null, isFavorite: Boolean? = null): Response<ItemCounts>

Get item counts.

Link copied to clipboard
suspend fun getLibraryOptionsInfo(libraryContentType: CollectionType? = null, isNewLibrary: Boolean? = false): Response<LibraryOptionsResultDto>

Gets the library options info.

Link copied to clipboard
suspend fun getMediaFolders(isHidden: Boolean? = null): Response<BaseItemDtoQueryResult>

Gets all user media folders.

Link copied to clipboard

Gets a list of physical paths from virtual folders.

Link copied to clipboard
suspend fun getSimilarAlbums(itemId: UUID, excludeArtistIds: Collection<UUID>? = emptyList(), userId: UUID? = null, limit: Int? = null, fields: Collection<ItemFields>? = emptyList()): Response<BaseItemDtoQueryResult>

Gets similar items.

Link copied to clipboard
suspend fun getSimilarArtists(itemId: UUID, excludeArtistIds: Collection<UUID>? = emptyList(), userId: UUID? = null, limit: Int? = null, fields: Collection<ItemFields>? = emptyList()): Response<BaseItemDtoQueryResult>

Gets similar items.

Link copied to clipboard
suspend fun getSimilarItems(itemId: UUID, excludeArtistIds: Collection<UUID>? = emptyList(), userId: UUID? = null, limit: Int? = null, fields: Collection<ItemFields>? = emptyList()): Response<BaseItemDtoQueryResult>

Gets similar items.

Link copied to clipboard
suspend fun getSimilarMovies(itemId: UUID, excludeArtistIds: Collection<UUID>? = emptyList(), userId: UUID? = null, limit: Int? = null, fields: Collection<ItemFields>? = emptyList()): Response<BaseItemDtoQueryResult>

Gets similar items.

Link copied to clipboard
suspend fun getSimilarShows(itemId: UUID, excludeArtistIds: Collection<UUID>? = emptyList(), userId: UUID? = null, limit: Int? = null, fields: Collection<ItemFields>? = emptyList()): Response<BaseItemDtoQueryResult>

Gets similar items.

Link copied to clipboard
suspend fun getSimilarTrailers(itemId: UUID, excludeArtistIds: Collection<UUID>? = emptyList(), userId: UUID? = null, limit: Int? = null, fields: Collection<ItemFields>? = emptyList()): Response<BaseItemDtoQueryResult>

Gets similar items.

Link copied to clipboard
suspend fun getThemeMedia(itemId: UUID, userId: UUID? = null, inheritFromParent: Boolean? = false, sortBy: Collection<ItemSortBy>? = emptyList(), sortOrder: Collection<SortOrder>? = emptyList()): Response<AllThemeMediaResult>

Get theme songs and videos for an item.

Link copied to clipboard
suspend fun getThemeSongs(itemId: UUID, userId: UUID? = null, inheritFromParent: Boolean? = false, sortBy: Collection<ItemSortBy>? = emptyList(), sortOrder: Collection<SortOrder>? = emptyList()): Response<ThemeMediaResult>

Get theme songs for an item.

Link copied to clipboard
suspend fun getThemeVideos(itemId: UUID, userId: UUID? = null, inheritFromParent: Boolean? = false, sortBy: Collection<ItemSortBy>? = emptyList(), sortOrder: Collection<SortOrder>? = emptyList()): Response<ThemeMediaResult>

Get theme videos for an item.

Link copied to clipboard
suspend fun postAddedMovies(tmdbId: String? = null, imdbId: String? = null): Response<Unit>

Reports that new movies have been added by an external source.

Link copied to clipboard
suspend fun postAddedSeries(tvdbId: String? = null): Response<Unit>

Reports that new episodes of a series have been added by an external source.

Link copied to clipboard

Reports that new movies have been added by an external source.

Link copied to clipboard
suspend fun postUpdatedMovies(tmdbId: String? = null, imdbId: String? = null): Response<Unit>

Reports that new movies have been added by an external source.

Link copied to clipboard
suspend fun postUpdatedSeries(tvdbId: String? = null): Response<Unit>

Reports that new episodes of a series have been added by an external source.

Link copied to clipboard
suspend fun refreshLibrary(): Response<Unit>

Starts a library scan.