l3uddz / plex_dupefinder

Find and delete duplicate files in Plex
GNU General Public License v3.0
303 stars 54 forks source link

Set config from environment #34

Open darth-veitcher opened 4 years ago

darth-veitcher commented 4 years ago

Describe the problem At the moment (I believe) the config needs to be specified in the config.json file. It would be useful to be able to override k,v combinations from the environment (when they exist). This would assist with dockerising the script.

Describe any solutions you think might work After the file has been loaded merge the environment dict so that any set variables are overwritten in the config.