From 9a6d7670f4bf3eb7f8884cbbec28e68373ea5716 Mon Sep 17 00:00:00 2001 From: gilgamezh Date: Sun, 18 Jan 2026 13:21:41 +0100 Subject: [PATCH] media: fix cross-seed config for qbittorrent --- .../cross-seed/templates/configmap.yaml | 16 +++++++++++----- custom_helm_charts/cross-seed/values.yaml | 10 +++++++--- helm-values/cross-seed_values.yaml | 10 +++++++--- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/custom_helm_charts/cross-seed/templates/configmap.yaml b/custom_helm_charts/cross-seed/templates/configmap.yaml index 3b3c147..970e899 100644 --- a/custom_helm_charts/cross-seed/templates/configmap.yaml +++ b/custom_helm_charts/cross-seed/templates/configmap.yaml @@ -10,12 +10,18 @@ metadata: data: config.js: | module.exports = { - qbittorrentUrl: "{{ .Values.config.qbittorrentUrl }}", - qbittorrentUsername: process.env.QBITTORRENT_USERNAME, - qbittorrentPassword: process.env.QBITTORRENT_PASSWORD, + torrentClients: [ + { + type: "qbittorrent", + url: "{{ .Values.config.qbittorrentUrl }}", + username: process.env.QBITTORRENT_USERNAME, + password: process.env.QBITTORRENT_PASSWORD + } + ], torrentDir: "{{ .Values.config.torrentDir }}", - outputDir: "{{ .Values.config.outputDir }}", - linkDirs: {{ toJson .Values.config.linkDirs }}, + dataDirs: {{ toJson .Values.config.dataDirs }}, + outputDir: {{ toJson .Values.config.outputDir }}, + action: "{{ .Values.config.action }}", torznab: [ `{{ .Values.config.torznabBaseUrl }}?t=search&apikey=${process.env.NZBGEEK_API_KEY}` ] diff --git a/custom_helm_charts/cross-seed/values.yaml b/custom_helm_charts/cross-seed/values.yaml index 04b137f..b166657 100644 --- a/custom_helm_charts/cross-seed/values.yaml +++ b/custom_helm_charts/cross-seed/values.yaml @@ -29,10 +29,11 @@ command: config: qbittorrentUrl: "http://qbittorrent.default.svc.cluster.local:8080" - torrentDir: "/data/torrents" - outputDir: "/data/torrents/.cross-seed" - linkDirs: + torrentDir: "/qbittorrent-config/qBittorrent/BT_backup" + dataDirs: - "/data/torrents" + outputDir: null + action: "inject" torznabBaseUrl: "https://api.nzbgeek.info/api" secret: @@ -74,6 +75,9 @@ volumeMounts: - name: config mountPath: "/config/config.js" subPath: "config.js" + - name: plex-data + mountPath: "/qbittorrent-config" + subPath: "configs/qbittorrent" - name: plex-data mountPath: "/data/torrents" subPath: "torrent" diff --git a/helm-values/cross-seed_values.yaml b/helm-values/cross-seed_values.yaml index 8e68cd5..68b2594 100644 --- a/helm-values/cross-seed_values.yaml +++ b/helm-values/cross-seed_values.yaml @@ -29,10 +29,11 @@ command: config: qbittorrentUrl: "http://qbittorrent.default.svc.cluster.local:8080" - torrentDir: "/data/torrents" - outputDir: "/data/torrents/.cross-seed" - linkDirs: + torrentDir: "/qbittorrent-config/qBittorrent/BT_backup" + dataDirs: - "/data/torrents" + outputDir: null + action: "inject" torznabBaseUrl: "https://api.nzbgeek.info/api" secret: @@ -61,6 +62,9 @@ volumeMounts: - name: config mountPath: "/config/config.js" subPath: "config.js" + - name: plex-data + mountPath: "/qbittorrent-config" + subPath: "configs/qbittorrent" - name: plex-data mountPath: "/data/torrents" subPath: "torrent"