Execute Plugin

Suggest, post, or discuss plugins for Deluge
AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm

Execute Plugin

Post by AlxAlxV »

Hi,

I've a question about the Execute Plugin.
When the "Completed" Event is really launched ?

When a torrent get 100% ?
or when the client finished to move the torrent to the completed destination folder ?

It's very important for me because I want to autosort my completed torrent but to avoir error, the torrent need to be fully copied.

Thanks ! :D
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Execute Plugin

Post by Cas »

For 1.3 it's the former, the problem you describe should be solved in next version.
AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm

Re: Execute Plugin

Post by AlxAlxV »

So when the event is raised ?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Execute Plugin

Post by Cas »

"When a torrent get 100%"
AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm

Re: Execute Plugin

Post by AlxAlxV »

Ok. Thanks.
How Can I execute the script after the copy in the completed folder?
Coz my copy script failed when the move take time...

Thx
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Execute Plugin

Post by Cas »

You could maybe check whether the same file/folder exists in your download location vs the move location
AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm

Re: Execute Plugin

Post by AlxAlxV »

Ok but if the file is on both side ?
I wait & retry ? In a while statement maybe.

Is there a new feature planned to add "On file destination move completed" ?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Execute Plugin

Post by Cas »

libtorrent has the storage_moved_alert but we need to implement it and will be covered in this ticket: http://dev.deluge-torrent.org/ticket/637
AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm

Re: Execute Plugin

Post by AlxAlxV »

Thank Cas,

I seen that this point is Fixed.
So is a new event available now for the Execute plugin ?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Execute Plugin

Post by Cas »

It will be in the next major release.
Post Reply