From dd60800c9788133c8bb284140f3ac72e2c25ed5f Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Mon, 23 Jun 2025 23:54:26 +0200 Subject: [PATCH] refs #2290: Replaces ctorrent by mktorrent to create torrent file for images --- bin/createTorrentSum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/createTorrentSum.py b/bin/createTorrentSum.py index 15c2076..1f32690 100644 --- a/bin/createTorrentSum.py +++ b/bin/createTorrentSum.py @@ -134,8 +134,8 @@ def create_torrent(file_path, torrent_file, datafullsum): repo_ip = get_IPlocal() tracker_url = f"http://{repo_ip}:6969/announce" - # Creamos una lista con el comando para crear el torrrent, y lo imprimimos con espacios: - splitted_cmd = f"nice -n 0 ctorrent -t {file_path} -u {tracker_url} -s {torrent_file} -c {datafullsum} -l 4194304".split() + # Creamos una litas para ejecutar el comando mktorrent para crear el archivo torrent + splitted_cmd = f"nice -n 0 mktorrent -a {tracker_url} -c {datafullsum} -o {torrent_file} -l 4194304 {file_path}".split() print(f"Sending command: {' '.join(splitted_cmd)}") # Ejecutamos el comando en el sistema, e imprimimos el resultado: