Fix torrent info retrieval in torrent-processor

- Fix direct transmission command execution for single torrents
- Fix info retrieval for category-based processing
This commit is contained in:
masterdraco 2025-03-04 17:22:21 +01:00
parent fb56817e76
commit 4f7cb91bc5

View File

@ -127,8 +127,9 @@ process_single_torrent() {
log_debug "Processing single torrent ID: \$id"
# Get torrent info
local info
info=\$(get_torrent_info "\${id}")
local info cmd
cmd="transmission-remote \${TRANSMISSION_IP}:\${TRANSMISSION_PORT} -n \${TRANSMISSION_USER}:\${TRANSMISSION_PASSWORD} -t \${id} -i"
info=\$(eval "\$cmd")
if [[ -z "\$info" ]]; then
log_error "Failed to get info for torrent \$id"
@ -285,7 +286,9 @@ process_category_torrents() {
# Process each torrent
for id in \$torrent_ids; do
# Get torrent info
local info=\$(get_torrent_info "\$id")
local info cmd
cmd="transmission-remote \${TRANSMISSION_IP}:\${TRANSMISSION_PORT} -n \${TRANSMISSION_USER}:\${TRANSMISSION_PASSWORD} -t \${id} -i"
info=\$(eval "\$cmd")
if [[ -z "\$info" ]]; then
log_warn "Failed to get info for torrent \$id, skipping"