jellyfin / jellyfin-plugin-opensubtitles

https://jellyfin.org
GNU General Public License v3.0
121 stars 26 forks source link

Plugin configuration not saving correctly, and gets overwritten on server restart. #64

Closed jadonclegg closed 2 years ago

jadonclegg commented 2 years ago

I can't get the configuration for version 11 to save. If I hit edit plugin, and fill in the settings and save, the page just reloads and clears all the fields, and the xml file in the plugin config directory still has empty elements for the username, password, and api key. If I manually edit the xml file and restart the server, it clears the file.

I reverted to version 10 and it's working fine with the old API.

MBR-0001 commented 2 years ago

Can you check if there are any errors in the server logs and maybe send a screenshot of the page with network inspector open after clicking on the save button (example below)

jadonclegg commented 2 years ago

When I first load the options page it looks like this. image

This is what it shows in the JS console, it's not even loading the JS to be able to save. image

I do have a reverse proxy set up with Nginx, and I'm running jellyfin in a container. Not sure if that would affect it.

jadonclegg commented 2 years ago

I went to the jellyfin documentation website, and the nginx config they suggest using has changed, and I updated the Content-Security-Policy header, and it's working fine now. So it wasn't an issue on your end, thanks for the help!

MBR-0001 commented 2 years ago

Yeah I assumed it was something like that, glad you solved it!