Closed ragebflame closed 2 years ago
To add to this; It seems to be working okay if I provide a string name. Am I possibly using the Number option incorrectly?
AddTransmissionTrackers.sh - list current torrents WORKING
AddTransmissionTrackers.sh $n1 $n2... - add trackers to torrent of number $n1 and $n2 FAILING (when I pass an ID e.g. 15)
AddTransmissionTrackers.sh $s1 $s2... - add trackers to first torrent with part of name $s1 and $s2 WORKING
Hi,
I've to better understand this error, actually I'm not using transmission but I can try to figure out why this happen
Just remember that if you try to inject trackers inside one torrent that already have the same trackers, you'll get error but I think you already know that.
A very stupid question, do you have torrent number 1? Transmission use progressive numbers for ID but can skip ID, you can check all you available ID simply run ./AddTransmissionTrackers.sh
Can you please run this
bash -x AddTransmissionTrackers.sh 2 1>/dev/null 2>test.log
Remove all information that you don't want to share and post the test.log or upload it somewhere?
Sure,
test.log output is on <
I am aware that an error will be thrown if the tracker already exists. I can see the script working if I pass it a string that a torrent name contains.
Ok, I can replicate the error, the problem is not the number 1 is all the numbers, only number have problem for now, auto-inject works, name also, but not numbers. I'll try to figure it out
Thanks. I'm sure its a small fix, was too lazy to have a look myself!
Very useful script, and I can pass a string value for now.
Heheheh, I think you can fix it better than me, lol! Yes you can, but is always one error on number side :D
Hi, try this little fix. When I'll have some time, I'll rewrite the entire logic of manual run, the bast way is to have some little arguments, like -n for number, -t for text and so on
Hi, try this little fix. When I'll have some time, I'll rewrite the entire logic of manual run, the bast way is to have some little arguments, like -n for number, -t for text and so on
Thanks, I'll give it a go!
Hi,
I am running the AddTransmissionTrackers.sh script manually on a torrent of ID 1:
AddTransmissionTrackers.sh 1
Output shows that it failed to add the trackers:
Echoing the command in
inject_trackers ()
, it looks like $1 is being not being passed in: