PCJones / UmlautAdaptarr

A tool to work around Sonarr, Radarr, Lidarr and Readarrs problems with foreign languages
82 stars 5 forks source link

Add Proxy Support, Add IOptions Pattern, Add Extensions Method #15

Closed xpsony closed 7 months ago

xpsony commented 7 months ago

Currently Changes

Http / Https proxy support has been added , To disguise the Ip address or if a proxy service is required IOptions pattern has been implemented. Better options handling Extensions methods have been implemented to make Program.cs smaller Added a global logger for static and extension methods appsettings.json now contains "default" data for the applications and proxy settings. The Docker variables are also specified above it. This also fixes the bug that you have to set all variables, although you only want to use Sonarr, for example Breaking Change :

Because Microsoft parses the Env variables differently for IOptions. The following changes must be made for existing users.

Wherever "_" is used, "__" must now be used

Example :

SONARR_ENABLED becomes SONARR__ENABLED

Further examples can be found in appsettings.json

I don't know if there is a way to customise the format. But this is the standard that Microsoft recommends

Note : Only tested with Sonarr , but the Others should work too

xpsony commented 7 months ago

This is the same like Pull Request 9. I destroyed the Git project and had to make it beautiful again