• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Migrating from Plex: How to rewrite this Plex Playlist API Script for Jellyfin

     
    • 0 Vote(s) - 0 Average

    Migrating from Plex: How to rewrite this Plex Playlist API Script for Jellyfin

    Generating a Shuffled-In-Order Playlist From List of Series
    mcarlton00
    Offline

    Kodi Addon Maintainer

    Posts: 145
    Threads: 1
    Joined: 2023 Sep
    Reputation: 9
    Country:United States
    #5
    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
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Migrating from Plex: How to rewrite this Plex Playlist API Script for Jellyfin - by Exaskryz - 2024-01-09, 07:28 PM
    RE: Migrating from Plex: How to rewrite this Plex Playlist API Script for Jellyfin - by mcarlton00 - 2024-01-09, 07:50 PM
    RE: Migrating from Plex: How to rewrite this Plex Playlist API Script for Jellyfin - by Exaskryz - 2024-01-09, 08:35 PM
    RE: Migrating from Plex: How to rewrite this Plex Playlist API Script for Jellyfin - by tmsrxzar - 2024-01-09, 08:41 PM
    RE: Migrating from Plex: How to rewrite this Plex Playlist API Script for Jellyfin - by mcarlton00 - 2024-01-09, 10:06 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode