Added sabnzbd to api script
This commit is contained in:
@@ -13,6 +13,8 @@ with lib; let
|
|||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
util-linux
|
util-linux
|
||||||
yq
|
yq
|
||||||
|
gnugrep
|
||||||
|
gnused
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
command="''${1:-}"
|
command="''${1:-}"
|
||||||
@@ -151,6 +153,10 @@ with lib; let
|
|||||||
${strings.optionalString nixarr.readarr-audiobook.enable ''
|
${strings.optionalString nixarr.readarr-audiobook.enable ''
|
||||||
READARR_AUDIOBOOK=$(xq -r '.Config.ApiKey' "${nixarr.readarr-audiobook.stateDir}/config.xml")
|
READARR_AUDIOBOOK=$(xq -r '.Config.ApiKey' "${nixarr.readarr-audiobook.stateDir}/config.xml")
|
||||||
echo "Readarr Audiobook api-key: $READARR_AUDIOBOOK"
|
echo "Readarr Audiobook api-key: $READARR_AUDIOBOOK"
|
||||||
|
''}
|
||||||
|
${strings.optionalString nixarr.sabnzbd.enable ''
|
||||||
|
SABNZBD=$(grep api_key ${nixarr.sabnzbd.stateDir}/sabnzbd.ini | sed 's/^api_key.*= *//g')
|
||||||
|
echo "Sabnzbd api-key: \"$SABNZBD\""
|
||||||
''}
|
''}
|
||||||
${strings.optionalString nixarr.sonarr.enable ''
|
${strings.optionalString nixarr.sonarr.enable ''
|
||||||
SONARR=$(xq '.Config.ApiKey' "${nixarr.sonarr.stateDir}/config.xml")
|
SONARR=$(xq '.Config.ApiKey' "${nixarr.sonarr.stateDir}/config.xml")
|
||||||
|
|||||||
Reference in New Issue
Block a user