2024-01-09, 10:06 PM
I will be completely honest with you: the jellyfin-apiclient-python kinda sucks. I maintain 3 python clients and have several scripts I use to interact with my server, and I avoid it where ever possible. It was originally pulled out of the source code of jellyfin-kodi, and there was a whole lot of "not good" about that code. You've already discovered that getting started with it is kinda clunky. Eventually I would like to make a proper one based on the openapi spec published by the server, but refactoring all of my stuff to use it just hasn't been worth the time yet.
If you want to use the apiclient as is, your best options are likely going to be to look through the jellyfin-kodi and jellyfin-mpv-shim repos to figure out how it's being used there. And be warned it's not going to be a concise as the plex python library.
If you want to venture into the unknown a bit, you can generate your own api client using the jellyfin openapi spec found here: https://api.jellyfin.org/openapi/jellyfi...table.json
I personally find it easier to just write my own api calls using the requests library.
* This is a snippet I put together ages ago: https://gist.github.com/mcarlton00/f7bd7...9cebf9a247
* Here are all the api calls made in the mopidy client: https://github.com/jellyfin/mopidy-jelly.../remote.py
* Possibly the most relevant for you, this pulls all songs marked "favorite" from the server and pushes them into a playlist: https://gist.github.com/mcarlton00/c08a6...da826e1ac1
If you want to use the apiclient as is, your best options are likely going to be to look through the jellyfin-kodi and jellyfin-mpv-shim repos to figure out how it's being used there. And be warned it's not going to be a concise as the plex python library.
If you want to venture into the unknown a bit, you can generate your own api client using the jellyfin openapi spec found here: https://api.jellyfin.org/openapi/jellyfi...table.json
I personally find it easier to just write my own api calls using the requests library.
* This is a snippet I put together ages ago: https://gist.github.com/mcarlton00/f7bd7...9cebf9a247
* Here are all the api calls made in the mopidy client: https://github.com/jellyfin/mopidy-jelly.../remote.py
* Possibly the most relevant for you, this pulls all songs marked "favorite" from the server and pushes them into a playlist: https://gist.github.com/mcarlton00/c08a6...da826e1ac1