• 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 ansible automation

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    ansible automation

    how to configure jellyfin with ansible
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #11
    2024-08-19, 03:55 PM
    What's your goal with trying to do all of this?

    If your goal is to "debloat" Jellyfin and bring it back to the basics, it's going to end up the same way after you spend days/weeks of 24/7 CPU & GPU utilization rebuilding the metadata such as Trickplay files.

    And are you planning on using the backup on different machines? Jellyfin can't automatically choose the correct HWA settings for the machine it's installed on, so you'll have to write a script to automate that for yourself as one machine's correct settings will be the wrong ones on another.

    Same concept for adding blank libraries. You need to make sure the library paths remain absolutely the same if you're going to be reusing that.

    Installing Jellyfin from scratch is like a 3 to 5 minute task. Configuring it after that is like another 5 minute task once you get familiar with the software.
    olivia Barker
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    #12
    2024-08-20, 01:21 PM (This post was last modified: 2024-08-20, 03:03 PM by olivia Barker. Edited 5 times in total.)
    i was looking at the jellyfin api and i saw this section of it https://api.jellyfin.org/#tag/Startup i think i can use this to do what i want then i can add libaries using the libarystructure routes. It still doesnt fix things like watch time but it would let me automate the setup like i wanted i used dev tools to copy the request and parameters sent to api via the web client. im slightly confused as the startup ommands still require and api key. i am trying to get an api key using the command "curl -L -v -X POST -H "Accept: application/json" -d "app=test" http://127.0.0.1:8096/Auth/Keys"
    this is so i can get the api key required for the other requests however im getting a 401 unautharised


    Note: Unnecessary use of -X or --request, POST is already inferred.
    * Trying 127.0.0.1:8096...
    * Connected to 127.0.0.1 (127.0.0.1) port 8096
    > POST /Auth/Keys HTTP/1.1
    > Host: 127.0.0.1:8096
    > User-Agent: curl/8.9.1
    > Accept: application/json
    > Content-Length: 8
    > Content-Type: application/x-www-form-urlencoded
    >
    * upload completely sent off: 8 bytes
    < HTTP/1.1 401 Unauthorized
    < Content-Length: 0
    < Date: Tue, 20 Aug 2024 14:47:40 GMT
    < Server: Kestrel
    < X-Response-Time-ms: 0.4857
    <
    * Connection #0 to host 127.0.0.1 left intact

    i tried pulling the authorization header from the setup wizard's requests but it sats i have a malformed input somewhere i tried escaping the " inside the header but i still get the same thing
    olivia Barker
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    #13
    2024-08-20, 03:15 PM
    (2024-08-19, 03:55 PM)Efficient_Good_5784 Wrote: What's your goal with trying to do all of this?

    If your goal is to "debloat" Jellyfin and bring it back to the basics, it's going to end up the same way after you spend days/weeks of 24/7 CPU & GPU utilization rebuilding the metadata such as Trickplay files.

    And are you planning on using the backup on different machines? Jellyfin can't automatically choose the correct HWA settings for the machine it's installed on, so you'll have to write a script to automate that for yourself as one machine's correct settings will be the wrong ones on another.

    Same concept for adding blank libraries. You need to make sure the library paths remain absolutely the same if you're going to be reusing that.

    Installing Jellyfin from scratch is like a 3 to 5 minute task. Configuring it after that is like another 5 minute task once you get familiar with the software.
    my goal is to have ansible automatically get jellyfin to state where it has my user and 2 libaries one for movies and one for shows. this is so i can then automate jellyseer to have a jellyfin  account attached.
    all i wanted to do was effectively complete the setup wizard without using the gui then that's all the configuring i should need to do.
    i don't plan on using the backup on a different machine that was just an idea to get to my goal of having jellyfin start and be past the setup script. 
    The library paths would always be the same as its controlled through ansible.
    installing jellyfin is realy easy and im using docker compose for it but once its installed configuring it without user interaction is turning out to be quite difficult. sorry for any confusion caused.
    olivia Barker
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    #14
    2024-08-23, 09:47 PM
    i think i have a solution using this gist https://gist.github.com/aslafy-z/dce9fd9...31687ae4f5 and the api responses i got from the setup wizard i think i can do it. I cant test right now but this should be exactly what i need
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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