Open elvis0288 opened 3 years ago
@elvis0288 I am doing well. Hope you are too.
This is a good idea. If/when I have the time to make such an update to this script I will keep it in mind. But it sounds like your use-case may fall outside of the normal. I would bet the average home adds and removes users much less often. But I will offer you two solutions and hopefully one is helpful.
If I recall you correctly, you are using Ombi to manage your user accounts. If this is still true; create as many extra generic users/passwords as you need in emby/jf. Run the script one last time. Add all of the current and new generic users. Disable access for the unused generic users in Ombi. When you need to add/remove a user; instead enable/disable their access from Ombi.
Make a copy of the current config so you can restore it if the manual edit is wrong.
Manually Add User Keys
Manually Add Libraries
Save the manually update config and re-run the script.
You can also see an example config in the README.md.
@elvis0288 Give this branch a try. It should allow you to update your existing config with new users and associate libraries to them.
https://github.com/terrelsa13/media_cleaner/tree/terrelsa13-Update-Existing-Config
You will want to make a copy of your original script and config in case you need to revert back. Download the new script. Replace the old script with the new script. Add the following line anywhere in the copy of your existing config:
UPDATE_CONFIG='FALSE'
When it is 'FALSE'
the script will run normally.
When it is 'TRUE'
the script will allow you to add new users to the existing config.
Let me know how this works for you.
@elvis0288 I forgot to tell you to also add the following anywhere in the copy of your config:
Only add the one that matches the behavior you are using.
script_behavior='whitelist'
.script_behavior='blacklist'
.
@terrelsa13 hello how are you?
so i have been using the script for a long time now and everything is working perfectly with it.. i even switch to Linux. now here is my situation..
couple of times per month, i will add new users to jellyfin so the problem is that then i will need to delete the config file for the media cleaner and run it again.. and imagine every time it get bigger and bigger..
do you think there is a way in which i will just run something and instead of having to run everything again, it will just check the config and let you select just the new users to add into the already configured config file?
Thanks!