Default settings.json #268
Replies: 2 comments 8 replies
-
Hi, the plex_debrid modules take their settings from class variables, who's default values are hardcoded into each modules python file. If plex_debrid loads a settings.json file, all these class variable values are replaced with the appropriate values from the file. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification. And admittedly, this issue may be unique to my configuration with running plex_debrid from within portainer vs. docker CLI or another platform. Related/unrelated: With version 2.45, when I attempt to run plex_debrid with "Show Menu on Startup": "true" or no settings.json present, I receive the following error, and the container shuts down, which prevents entering the CLI to start the settings and exit as described. [v2.45]
The above is not present when "Show Menu on Startup": "false" and the plex_debrid runs successfully. This issue is also not present in version 2.20. This may also be moot, as I know you're working towards a web UI version. :) Please also forgive my ignorance, as I don't fully understand the complexities involved. Would it be possible for plex_debrid to update the settings.json with any missing default fields upon startup, regardless of entering the settings menu? The thought is that with "Show Menu on Startup": "false" the setting.json would receive any new values available within the release and allow review/update of the fields directly from the json. Perhaps, something I could implement in CLI with the current revision? As for the default settings.json, would providing it as sample_settings.json mitigate the issue with the initial setup? Thanks again for entertaining my ideas! |
Beta Was this translation helpful? Give feedback.
-
Hi @itsToggle
Would it be possible to add a default settings.json file to the release packages that are updated with each release? The issue I have experienced is that the format changes as new features are added. Yet, those new fields are not conveyed if utilizing a preexisting settings.json from an earlier revision unless the initial setup is performed again. This is particularly useful for docker deployments where the settings.json is provided in the /config prior to running. Ideally, it should be stored in a directory so that the volume can be mapped, thus allowing it to be pulled from the docker host and modified.
Example of discrepancy below:
Existing settings.json:
"Show Menu on Startup": "true",
"Debug printing": "true",
"version": [
"2.20",
"Settings compatible update",
Clean install settings.json:
"Show Menu on Startup": "true",
"Debug printing": "false",
"Log to file": "false",
"version": [
"2.45",
"Settings compatible update",
"Log to file" was enabled after v2.20
The same is also true for other fields, such as "Special character renaming"
THX
Beta Was this translation helpful? Give feedback.
All reactions