From cf6f7a41c269ea991d365bdaec0c943ea8b14dcd Mon Sep 17 00:00:00 2001 From: Luciano Laratelli Date: Wed, 23 Mar 2022 19:48:52 -0400 Subject: [PATCH] add configuration option for default root folder untested --- README.md | 24 +++++++++++++----------- src/doplarr/backends/radarr.clj | 6 +++++- src/doplarr/backends/sonarr.clj | 6 +++++- src/doplarr/config.clj | 2 ++ src/doplarr/config/specs.clj | 8 ++++++-- 5 files changed, 31 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 97e4795..27eb148 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ doplarr: - RADARR__API=radarr_api - DISCORD__TOKEN=bot_token container_name: doplarr - image: 'ghcr.io/kiranshila/doplarr:latest' + image: "ghcr.io/kiranshila/doplarr:latest" ``` ## Building and Running Locally @@ -143,16 +143,18 @@ To skip the build, just download `Doplarr.jar` and `config.edn` from the release ### Optional Settings -| Environment Variable (Docker) | Config File Keyword | Type | Default Value | Description | -| ------------------------------ | ------------------------------ | ------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `DISCORD__MAX_RESULTS` | `:discord/max-results` | Integer | `25` | Sets the maximum size of the search results selection | -| `DISCORD__ROLE_ID` | `:discord/role-id` | Long | N/A | The discord role id for users of the bot (omitting this lets everyone on the server use the bot) | -| `DISCORD__REQUESTED_MSG_STYLE` | `:discord/requested-msg-style` | Keyword | `:plain` | Sets the style of the request alert message. One of `:plain :embed :none` | -| `SONARR__QUALITY_PROFILE` | `:sonarr/quality-profile` | String | N/A | The name of the quality profile to use by default for Sonarr | -| `RADARR__QUALITY_PROFILE` | `:radarr/quality-profile` | String | N/A | The name of the quality profile to use by default for Radarr | -| `SONARR__LANGUAGE_PROFILE` | `:sonarr/language-profile` | String | N/A | The name of the language profile to use by default for Sonarr | -| `OVERSEERR__DEFAULT_ID` | `:overseerr/default-id` | Integer | N/A | The Overseerr user id to use by default if there is no associated discord account for the requester | -| `PARTIAL_SEASONS` | `:partial-seasons` | Boolean | `true` | Sets whether users can request partial seasons. | +| Environment Variable (Docker) | Config File Keyword | Type | Default Value | Description | +| ------------------------------ | ------------------------------ | ------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `DISCORD__MAX_RESULTS` | `:discord/max-results` | Integer | `25` | Sets the maximum size of the search results selection | +| `DISCORD__ROLE_ID` | `:discord/role-id` | Long | N/A | The discord role id for users of the bot (omitting this lets everyone on the server use the bot) | +| `DISCORD__REQUESTED_MSG_STYLE` | `:discord/requested-msg-style` | Keyword | `:plain` | Sets the style of the request alert message. One of `:plain :embed :none` | +| `SONARR__QUALITY_PROFILE` | `:sonarr/quality-profile` | String | N/A | The name of the quality profile to use by default for Sonarr | +| `RADARR__QUALITY_PROFILE` | `:radarr/quality-profile` | String | N/A | The name of the quality profile to use by default for Radarr | +| `SONARR__ROOT_FOLDER` | `:sonarr/root-folder` | String | N/A | The root folder to use by default for Sonarr | +| `RADARR__ROOT_FOLDER` | `:radarr/root-folder` | String | N/A | The root folder to use by default for Radarr | +| `SONARR__LANGUAGE_PROFILE` | `:sonarr/language-profile` | String | N/A | The name of the language profile to use by default for Sonarr | +| `OVERSEERR__DEFAULT_ID` | `:overseerr/default-id` | Integer | N/A | The Overseerr user id to use by default if there is no associated discord account for the requester | +| `PARTIAL_SEASONS` | `:partial-seasons` | Boolean | `true` | Sets whether users can request partial seasons. | | `LOG_LEVEL` | `:log-level` | Keyword | `:info` | The log level for the logging backend. This can be changed for debugging purposes. One of `:trace :debug :info :warn :error :fatal :report` | ### Setting up on Windows diff --git a/src/doplarr/backends/radarr.clj b/src/doplarr/backends/radarr.clj index a349d6f..1f2a9f6 100644 --- a/src/doplarr/backends/radarr.clj +++ b/src/doplarr/backends/radarr.clj @@ -19,9 +19,12 @@ (let [quality-profiles (a/