user_library_controller = client.user_library
UserLibraryController
Deletes a user's saved personal rating for an item.
def delete_user_item_rating(self,
user_id,
item_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
UserItemDataDto
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.delete_user_item_rating(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets intros to play before the main media item plays.
def get_intros(self,
user_id,
item_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
BaseItemDtoQueryResult
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.get_intros(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets an item from a user's library.
def get_item(self,
user_id,
item_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
BaseItemDto
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.get_item(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets latest media.
def get_latest_media(self,
user_id,
parent_id=None,
fields=None,
include_item_types=None,
is_played=None,
enable_images=None,
image_type_limit=None,
enable_image_types=None,
enable_user_data=None,
limit=20,
group_items=True)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
parent_id |
uuid|string |
Query, Optional |
Specify this to localize the search to a specific item or folder. Omit to use the root. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. |
include_item_types |
List of BaseItemKindEnum |
Query, Optional |
Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. |
is_played |
bool |
Query, Optional |
Filter by items that are played, or not. |
enable_images |
bool |
Query, Optional |
Optional. include image information in output. |
image_type_limit |
int |
Query, Optional |
Optional. the max number of images to return, per image type. |
enable_image_types |
List of ImageTypeEnum |
Query, Optional |
Optional. The image types to include in the output. |
enable_user_data |
bool |
Query, Optional |
Optional. include user data. |
limit |
int |
Query, Optional |
Return item limit. Default: 20 |
group_items |
bool |
Query, Optional |
Whether or not to group items into a parent container. Default: True |
List of BaseItemDto
user_id = '000013ec-0000-0000-0000-000000000000'
limit = 20
group_items = True
result = user_library_controller.get_latest_media(user_id, None, None, None, None, None, None, None, None, limit, group_items)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets local trailers for an item.
def get_local_trailers(self,
user_id,
item_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
List of BaseItemDto
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.get_local_trailers(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets the root folder from a user's library.
def get_root_folder(self,
user_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
BaseItemDto
user_id = '000013ec-0000-0000-0000-000000000000'
result = user_library_controller.get_root_folder(user_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets special features for an item.
def get_special_features(self,
user_id,
item_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
List of BaseItemDto
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.get_special_features(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Marks an item as a favorite.
def mark_favorite_item(self,
user_id,
item_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
UserItemDataDto
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.mark_favorite_item(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Unmarks item as a favorite.
def unmark_favorite_item(self,
user_id,
item_id)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
UserItemDataDto
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.unmark_favorite_item(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Updates a user's rating for an item.
def update_user_item_rating(self,
user_id,
item_id,
likes=None)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Template, Required |
User id. |
item_id |
uuid|string |
Template, Required |
Item id. |
likes |
bool |
Query, Optional |
Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Guid,System.Guid,System.Nullable{System.Boolean}) is likes. |
UserItemDataDto
user_id = '000013ec-0000-0000-0000-000000000000'
item_id = '0000130e-0000-0000-0000-000000000000'
result = user_library_controller.update_user_item_rating(user_id, item_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |