Closed ftoek closed 1 year ago
I tried replicating the issue on my instance and it yielded the same result. For some reason the response from the "/Users/{userId}/Items" endpoint doesn't return the CustomRating value. I haven't updated this library since jellyfin-openapi-10.8.5 dated 25-Sep-2022, things might've changed that I'm not aware of. I'll have a look at it over the weekend.
I figured this out this is not an issue, this is a feature, JellyfinapiClient.get_items
by default fetches just a few fields, if you need more fields you have to specify them explicitly, this is a working code
from jellyfinapi.jellyfinapi_client import JellyfinapiClient
client = JellyfinapiClient(
x_emby_token='xxx',
server_url="http://host-name:8096/")
items_controller = client.items
item_res = items_controller.get_items(ids="8b50ea0970c187473115191fa298ac9d", fields="CustomRating,People")
fields="CustomRating,People"
here I defined data fields I need to process
I'm trying to manipulate fields parental rating and custom rating of an item, however, I don't have CustomRating value in the BaseItemDto object returned in the callback. This is the a part of code I'm using:
and this is what I get
Any ideas? maybe I'm doing something wrong?