[Libtorrent-devel] Setting up multiple/conditional event.download.finished?

Balaji Dutt balaji.dutt at gmail.com
Tue Feb 10 11:20:27 UTC 2009


Hi Micah,

It seems to be almost working, but something's not quite right. Here's the
new command I'm trying:

system.method.set_key =
event.download.finished,move_complete,"execute=mv,-u,$d.get_base_path=
,d.set_directory=$d.set_directory="

I get this in the exec log:

---
mv -u /var/torrent_downloads/in_progress/Joshua Gonzalez- Miserable and
Stunning d.set_directory=$d.set_directory=
---

--- Success ---

And when I check the data path for the torrent it shows:

/var/torrent_downloads/completed/Joshua Gonzalez- Miserable and Stunning
>


But the problem is the directory is empty:

[completed]# pwd
> /var/torrent_downloads/completed
> [completed]# ls -la
> total 8
> drwxrwxr-x 2 rt apache 4096 Feb  6 06:41 .
> drwxrwxr-x 6 rt apache 4096 Feb  6 20:03 ..
>


Any ideas?

--
Balaji


On Tue, Feb 10, 2009 at 4:16 AM, Micah Fitzgerald <mcfitz2 at gmail.com> wrote:

> On Mon, 2009-02-09 at 16:25 +0800, Balaji Dutt wrote:
> > Hi,
> >
> > So I tried to setup the branch condition but clearly I'm missing
> > something. Here's the extract of my rtorrent.rc file:
> >
> >         system.method.set_key =
> >
> event.download.finished,check_custom1,"branch=d.get_custom1=,d.set_directory=$d.get_custom1=,d.set_directory=/var/torrent_downloads/completed/"
> >         system.method.set_key =
> >         event.download.finished,move_complete,"execute=mv,-u,
> >         $d.get_base_path= ;d.set_directory=$d.set_directory"
> >
> > I tested this will a small torrent and my execute_log has the
> > following error:
> >
> >         --- Error ---
> >
> >         ---
> >         mv -u /var/torrent_downloads/in_progress/Dev D - (2009) -
> >         [MP3-Vbr-320Kbps] - Team IcTv
> >         ---
> >         mv: missing destination file operand after
> >         `/var/torrent_downloads/in_progress/Dev D - (2009) -
> >         [MP3-Vbr-320Kbps] - Team IcTv'
> >         Try `mv --help' for more information.
> >
> > Could someone help me figure out how to set my target parameter on the
> > mv command?
>
> I think you need to add something after the $d.get_base_path. This is
> from my rtorrent.rc:
> "execute=mv,-u,$d.get_base_path=,$d.get_custom1="
> so the mv -u section of your line would read something to the effect of
>  execute=mv,-u,$d.get_base_path=,DESTINATION
>
> Notice the comma separating the arguments
> Hopefully this helps
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rakshasa.no/pipermail/libtorrent-devel/attachments/20090210/9ebca006/attachment.html


More information about the Libtorrent-devel mailing list