Fix uploading

This commit is contained in:
hyvenet
2025-08-22 20:00:14 +01:00
parent 35633b93ca
commit 2085d06d0f
2 changed files with 2 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ def ripDvd(driveName):
movieName = driveName movieName = driveName
os.system('HandBrakeCLI -i /dev/sr0 -o output/"' + movieName + '.mp4" --preset-import-file preset.json') os.system('HandBrakeCLI -i /dev/sr0 -o output/"' + movieName + '.mp4" --preset-import-file preset.json')
print("- Movie has been ripped, will now procede to upload file") print("- Movie has been ripped, will now procede to upload file")
uploadresults.upload()
print("- Movie has been uploaded") print("- Movie has been uploaded")
def waitForDvd(): def waitForDvd():

View File

@@ -27,10 +27,9 @@ def upload():
# Download each file # Download each file
sftp.put(local_filepath, remote_filepath) sftp.put(local_filepath, remote_filepath)
print(f"Uploaded: {local_filepath} to {remote_filepath}") print(f"- Uploaded: {local_filepath} to {remote_filepath}")
# Close the SFTP session and SSH connection # Close the SFTP session and SSH connection
sftp.close() sftp.close()
ssh_client.close() ssh_client.close()
print("All files downloaded and connections closed.")