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:
parent
fb56817e76
commit
4f7cb91bc5
@ -127,8 +127,9 @@ process_single_torrent() {
|
|||||||
log_debug "Processing single torrent ID: \$id"
|
log_debug "Processing single torrent ID: \$id"
|
||||||
|
|
||||||
# Get torrent info
|
# Get torrent info
|
||||||
local info
|
local info cmd
|
||||||
info=\$(get_torrent_info "\${id}")
|
cmd="transmission-remote \${TRANSMISSION_IP}:\${TRANSMISSION_PORT} -n \${TRANSMISSION_USER}:\${TRANSMISSION_PASSWORD} -t \${id} -i"
|
||||||
|
info=\$(eval "\$cmd")
|
||||||
|
|
||||||
if [[ -z "\$info" ]]; then
|
if [[ -z "\$info" ]]; then
|
||||||
log_error "Failed to get info for torrent \$id"
|
log_error "Failed to get info for torrent \$id"
|
||||||
@ -285,7 +286,9 @@ process_category_torrents() {
|
|||||||
# Process each torrent
|
# Process each torrent
|
||||||
for id in \$torrent_ids; do
|
for id in \$torrent_ids; do
|
||||||
# Get torrent info
|
# 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
|
if [[ -z "\$info" ]]; then
|
||||||
log_warn "Failed to get info for torrent \$id, skipping"
|
log_warn "Failed to get info for torrent \$id, skipping"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user