Skip to content

Commit

Permalink
FIX: escape str int for sonarr
Browse files Browse the repository at this point in the history
  • Loading branch information
akhil-rana authored Mar 10, 2024
1 parent 634e455 commit 4fed087
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ async def process_sonarr_webhook(body):
f"--telegram_bot_token={shlex.quote(TELEGRAM_BOT_TOKEN)}",
f"--telegram_api_hash={shlex.quote(TELEGRAM_API_HASH)}",
f"--telegram_api_id={shlex.quote(TELEGRAM_API_ID)}",
f"--telegram_radarr_chat_id={shlex.quote(TELEGRAM_RADARR_CHAT_ID)}",
f"--file_name={shlex.quote(movie_file_name)}",
f"--file_path={shlex.quote(local_movie_file_path)}",
f"--telegram_radarr_chat_id={TELEGRAM_SONARR_CHAT_ID}",
f"--file_name={shlex.quote(tvshow_file_name)}",
f"--file_path={shlex.quote(local_tvshow_file_path)}",
f"--file_caption_type={shlex.quote(TELEGRAMARR_FILE_CAPTION_CONTENT)}",
f"--delay_time={shlex.quote(str(TELEGRAMARR_DELAY_TIME))}",
f"--delay_time={TELEGRAMARR_DELAY_TIME}",
]

# Run the command in the background
Expand Down

0 comments on commit 4fed087

Please sign in to comment.