Merge branch 'update_torrent_clients'
ogclient/pipeline/head This commit looks good Details

update-boot-cache
Nicolas Arenas 2025-06-27 08:10:43 +02:00
commit 84c7aa8e29
2 changed files with 22 additions and 2 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.22.1] - 2025-06-27
### Fixed
- Included some changes that should be in the previous version
## [0.22.0] - 2025-06-26
### Changed

View File

@ -704,7 +704,18 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre
if 'seeder' != mode: return 'success' ## return any true value
print ('MODE seeder aria2c')
os.chdir (dirsource)
aria2_cmd = ["aria2c", "--check-integrity=true", "--bt-seed-unverified=true", "--seed-ratio=0.0", f"--seed-time={time}", "--enable-dht=false", "--enable-peer-exchange=false", f"--dir={dirsource}", f"{source}"]
aria2_cmd = [
"aria2c",
"--check-integrity=true",
"--bt-seed-unverified=true",
"--disable-ipv6",
"--seed-ratio=0.0",
f"--seed-time={time}",
"--enable-dht=false",
"--enable-peer-exchange=false",
f"--dir={dirsource}",
f"{source}"
]
subprocess.run (aria2_cmd)
os.chdir (cwd)
return 'success'
@ -729,6 +740,7 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre
"aria2c",
"--enable-dht=false",
"--enable-peer-exchange=false",
"--disable-ipv6" ,
f"--seed-time={time}",
f"--dir={dirsource}",
f"{source}"
@ -743,7 +755,6 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre
"--enable-peer-exchange=false",
"--disable-ipv6" ,
"--seed-time=0",
"bt-max-peers=0",
f"--dir={dirsource}",
f"{source}"
]
@ -755,6 +766,7 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre
"aria2c",
"--check-integrity=true",
"--bt-seed-unverified=true",
"--disable-ipv6" ,
"--seed-ratio=0.0",
f"--seed-time={time}",
"--enable-dht=false",
@ -842,6 +854,8 @@ def ogCreateTorrent (disk=None, par=None, container=None, file=None, ip_bttrack=
os.chdir (cwd)
#/**
# ogUpdateCacheIsNecesary [ str_repo ] Relative_path_file_OGIMG_with_/
#@brief Comprueba que el fichero que se desea almacenar en la cache del cliente, no esta.