library_controller = client.library
LibraryController
Deletes an item from the library and filesystem.
def delete_item(self,
item_id)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
void
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.delete_item(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized access. |
ProblemDetailsException |
403 |
Forbidden |
APIException |
Deletes items from the library and filesystem.
def delete_items(self,
ids=None)
Parameter |
Type |
Tags |
Description |
ids |
List of uuid|string |
Query, Optional |
The item ids. |
void
result = library_controller.delete_items()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized access. |
ProblemDetailsException |
403 |
Forbidden |
APIException |
Gets all parents of an item.
def get_ancestors(self,
item_id,
user_id=None)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
List of BaseItemDto
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_ancestors(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Item not found. |
ProblemDetailsException |
This endpoint is deprecated.
Gets critic review for an item.
def get_critic_reviews(self,
item_id)
Parameter |
Type |
Tags |
Description |
item_id |
string |
Template, Required |
- |
BaseItemDtoQueryResult
item_id = 'itemId8'
result = library_controller.get_critic_reviews(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Downloads item media.
def get_download(self,
item_id)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
mixed
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_download(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Item not found. |
ProblemDetailsException |
Get the original file of an item.
def get_file(self,
item_id)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
mixed
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_file(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Item not found. |
ProblemDetailsException |
Get item counts.
def get_item_counts(self,
user_id=None,
is_favorite=None)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Query, Optional |
Optional. Get counts from a specific user's library. |
is_favorite |
bool |
Query, Optional |
Optional. Get counts of favorite items. |
ItemCounts
result = library_controller.get_item_counts()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets the library options info.
def get_library_options_info(self,
library_content_type=None,
is_new_library=False)
Parameter |
Type |
Tags |
Description |
library_content_type |
string |
Query, Optional |
Library content type. |
is_new_library |
bool |
Query, Optional |
Whether this is a new library. Default: False |
LibraryOptionsResultDto
is_new_library = False
result = library_controller.get_library_options_info(None, is_new_library)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets all user media folders.
def get_media_folders(self,
is_hidden=None)
Parameter |
Type |
Tags |
Description |
is_hidden |
bool |
Query, Optional |
Optional. Filter by folders that are marked hidden, or not. |
BaseItemDtoQueryResult
result = library_controller.get_media_folders()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets a list of physical paths from virtual folders.
def get_physical_paths(self)
List of string
result = library_controller.get_physical_paths()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets similar items.
def get_similar_albums(self,
item_id,
exclude_artist_ids=None,
user_id=None,
limit=None,
fields=None)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
exclude_artist_ids |
List of uuid|string |
Query, Optional |
Exclude artist ids. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. |
BaseItemDtoQueryResult
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_similar_albums(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets similar items.
def get_similar_artists(self,
item_id,
exclude_artist_ids=None,
user_id=None,
limit=None,
fields=None)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
exclude_artist_ids |
List of uuid|string |
Query, Optional |
Exclude artist ids. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. |
BaseItemDtoQueryResult
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_similar_artists(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets similar items.
def get_similar_items(self,
item_id,
exclude_artist_ids=None,
user_id=None,
limit=None,
fields=None)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
exclude_artist_ids |
List of uuid|string |
Query, Optional |
Exclude artist ids. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. |
BaseItemDtoQueryResult
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_similar_items(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets similar items.
def get_similar_movies(self,
item_id,
exclude_artist_ids=None,
user_id=None,
limit=None,
fields=None)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
exclude_artist_ids |
List of uuid|string |
Query, Optional |
Exclude artist ids. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. |
BaseItemDtoQueryResult
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_similar_movies(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets similar items.
def get_similar_shows(self,
item_id,
exclude_artist_ids=None,
user_id=None,
limit=None,
fields=None)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
exclude_artist_ids |
List of uuid|string |
Query, Optional |
Exclude artist ids. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. |
BaseItemDtoQueryResult
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_similar_shows(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets similar items.
def get_similar_trailers(self,
item_id,
exclude_artist_ids=None,
user_id=None,
limit=None,
fields=None)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
exclude_artist_ids |
List of uuid|string |
Query, Optional |
Exclude artist ids. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. |
BaseItemDtoQueryResult
item_id = '0000130e-0000-0000-0000-000000000000'
result = library_controller.get_similar_trailers(item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Get theme songs and videos for an item.
def get_theme_media(self,
item_id,
user_id=None,
inherit_from_parent=False)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
inherit_from_parent |
bool |
Query, Optional |
Optional. Determines whether or not parent items should be searched for theme media. Default: False |
AllThemeMediaResult
item_id = '0000130e-0000-0000-0000-000000000000'
inherit_from_parent = False
result = library_controller.get_theme_media(item_id, None, inherit_from_parent)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Item not found. |
APIException |
Get theme songs for an item.
def get_theme_songs(self,
item_id,
user_id=None,
inherit_from_parent=False)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
inherit_from_parent |
bool |
Query, Optional |
Optional. Determines whether or not parent items should be searched for theme media. Default: False |
ThemeMediaResult
item_id = '0000130e-0000-0000-0000-000000000000'
inherit_from_parent = False
result = library_controller.get_theme_songs(item_id, None, inherit_from_parent)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Item not found. |
ProblemDetailsException |
Get theme videos for an item.
def get_theme_videos(self,
item_id,
user_id=None,
inherit_from_parent=False)
Parameter |
Type |
Tags |
Description |
item_id |
uuid|string |
Template, Required |
The item id. |
user_id |
uuid|string |
Query, Optional |
Optional. Filter by user id, and attach user data. |
inherit_from_parent |
bool |
Query, Optional |
Optional. Determines whether or not parent items should be searched for theme media. Default: False |
ThemeMediaResult
item_id = '0000130e-0000-0000-0000-000000000000'
inherit_from_parent = False
result = library_controller.get_theme_videos(item_id, None, inherit_from_parent)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Item not found. |
ProblemDetailsException |
Reports that new movies have been added by an external source.
def post_added_movies(self,
tmdb_id=None,
imdb_id=None)
Parameter |
Type |
Tags |
Description |
tmdb_id |
string |
Query, Optional |
The tmdbId. |
imdb_id |
string |
Query, Optional |
The imdbId. |
void
result = library_controller.post_added_movies()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Reports that new episodes of a series have been added by an external source.
def post_added_series(self,
tvdb_id=None)
Parameter |
Type |
Tags |
Description |
tvdb_id |
string |
Query, Optional |
The tvdbId. |
void
result = library_controller.post_added_series()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Reports that new movies have been added by an external source.
def post_updated_media(self,
body)
void
body = MediaUpdateInfoDto()
result = library_controller.post_updated_media(body)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Reports that new movies have been added by an external source.
def post_updated_movies(self,
tmdb_id=None,
imdb_id=None)
Parameter |
Type |
Tags |
Description |
tmdb_id |
string |
Query, Optional |
The tmdbId. |
imdb_id |
string |
Query, Optional |
The imdbId. |
void
result = library_controller.post_updated_movies()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Reports that new episodes of a series have been added by an external source.
def post_updated_series(self,
tvdb_id=None)
Parameter |
Type |
Tags |
Description |
tvdb_id |
string |
Query, Optional |
The tvdbId. |
void
result = library_controller.post_updated_series()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Starts a library scan.
def refresh_library(self)
void
result = library_controller.refresh_library()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |