From 1ecc0e891165e8f2681a4ff69f144bd7c32d4e4c Mon Sep 17 00:00:00 2001 From: hugo <63868236+hhhug000@users.noreply.github.com> Date: Fri, 22 Aug 2025 19:01:02 +0100 Subject: [PATCH] Fixed SFTP port input --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 33c62ba..caff092 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ DVD_DEVICE = "/dev/sr0" uploadPath = os.getenv('UPLOAD_PATH') sftpHost = os.getenv('SFTP_HOST') -sftpPort = os.getenv('SFTP_PORT') +sftpPort = int(os.getenv('SFTP_PORT')) sftpUsername = os.getenv('SFTP_USERNAME') sftpPassword = os.getenv('SFTP_PASSWORD') @@ -70,4 +70,4 @@ while True: print("-----------------------") print("- DVD has been ripped -") print("-----------------------") - openDrive.open() \ No newline at end of file + openDrive.open()