diff --git a/config.sample.yaml b/config.sample.yaml index f90330956..6a0a47828 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -10,6 +10,7 @@ webdav: # REST API configuration api: prefix: '/api' # API endpoint prefix + key_override: '' # 32-char API key override (takes precedence over database key, leave empty to use database) # Authentication configuration auth: @@ -168,8 +169,12 @@ mount_path: '' # WebDAV mount path, Example: '/mnt/altmount' or '/mnt/unionfs'. # SABnzbd-compatible API configuration sabnzbd: enabled: false # Enable SABnzbd-compatible API - complete_dir: '/complete' # The complete directory where the files will be "downloaded" - categories: # Download categories (optional) + complete_dir: '/' # Base virtual directory (relative to mount point, defaults to root) + categories: # Download categories + - name: 'Default' # System default category (name cannot be changed) + order: 0 + priority: 0 + dir: 'complete' # Default directory for uncategorized downloads - name: 'movies' order: 1 priority: 0 diff --git a/frontend/src/components/config/ArrsConfigSection.tsx b/frontend/src/components/config/ArrsConfigSection.tsx index 057c39ac9..236ea2358 100644 --- a/frontend/src/components/config/ArrsConfigSection.tsx +++ b/frontend/src/components/config/ArrsConfigSection.tsx @@ -224,6 +224,7 @@ export function ArrsConfigSection({ index={index} isReadOnly={isReadOnly} isApiKeyVisible={isApiKeyVisible} + categories={config.sabnzbd?.categories} onToggleApiKey={() => toggleApiKeyVisibility(instanceId)} onRemove={() => removeInstance(type, index)} onInstanceChange={(field, value) => handleInstanceChange(type, index, field, value)} @@ -477,15 +478,20 @@ export function ArrsConfigSection({
Download Category (Optional) - setNewInstance((prev) => ({ ...prev, category: e.target.value })) } - placeholder={newInstance.type === "radarr" ? "movies" : "tv"} - /> + > + + {config.sabnzbd?.categories?.map((cat) => ( + + ))} +