xbenjii / torrentexpander

Automatically exported from code.google.com/p/torrentexpander
0 stars 0 forks source link

error found in script concerning removing torrent from transmission! #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
nothing happen. 

What version of the product are you using? On what operating system?
linux-debian

Please provide any additional information below.
The error is on this line finding the torrent_id:

torrent_id=$("$torrent_daemon_bin" "$daemon_ip" -n "$daemon_l_p" -l > /dev/null 
2>&1 | grep "$torrent_name" | sed "s;^ \([0-9]*\)   .*;\1;")

This command consequently returns nothing.. 
This is because there is something wrong with the sed command.. If I remove the 
sed on the torrentim testing I get this:

"   8   100%   13.60 MB  Done         0.0     0.0   0.00  Idle         
New.Atlantis.Audio.Krush.Reason.Refill-SONiTUS"

Original issue reported on code.google.com by manaf.al.nakeeb@gmail.com on 21 Oct 2012 at 12:44

GoogleCodeExporter commented 8 years ago
it can be solved by this line :)

torrent_id=$("$torrent_daemon_bin" "$daemon_ip" -n "$daemon_l_p" -l | grep 
"$torrent_name" | awk '{print $1}')

Original comment by manaf.al.nakeeb@gmail.com on 21 Oct 2012 at 1:07

GoogleCodeExporter commented 8 years ago
Sorry for my lack of updates during the last few (many) months.
New job that takes most of my time, new apartment that requires a lot of work, 
not enough time remaining to take care of torrentexpander.
Sorry for that

The problem should be solved now. I'm sticking with sed because awk is not 
supported on every unixes

Thanks for your input

   Addictedtoscreens

Original comment by addicted...@gmail.com on 2 Dec 2012 at 9:44