From 69a555a658dc2686d9976279cda2db04e35b8fd0 Mon Sep 17 00:00:00 2001 From: Karl Date: Mon, 8 Jan 2024 09:22:21 +0000 Subject: [PATCH] sonarr token from envavr --- auto_subtitle/utils/sonarr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auto_subtitle/utils/sonarr.py b/auto_subtitle/utils/sonarr.py index 245edea..e6282ae 100644 --- a/auto_subtitle/utils/sonarr.py +++ b/auto_subtitle/utils/sonarr.py @@ -1,6 +1,7 @@ import requests import json - +import os +token = os.getenv('sonarr_token') def update_show_in_soarr(show_id): url = "http://192.168.4.9:8989/api/v3/command" @@ -11,7 +12,7 @@ def update_show_in_soarr(show_id): }) headers = { 'Content-Type': 'application/json', - 'X-Api-Key': 'f6ea49a75a44469daec03969bdf6764d', + 'X-Api-Key': token, } response = requests.request("POST", url, headers=headers, data=payload)