Search found 29 matches

by ledzgio
Sat Mar 13, 2010 6:06 pm
Forum: Plugins
Topic: [Plugin] DeletePartials - deletes partial files
Replies: 24
Views: 104587

Re: New plugin: delete partial files

Great plugin.

I've made a plugin that moves downloaded torrent to specified directories depending on the type, audio, video, data and documents.

It can be found here:

http://dev.deluge-torrent.org/wiki/Plugins/Categorise

It would be nice to integrate your functionality within my plugin..

bye
by ledzgio
Fri Mar 12, 2010 9:29 am
Forum: Plugins
Topic: [Plugin] Categorise
Replies: 35
Views: 43212

[Plugin] Categorise

I've finally added my first plugin to the wiki page, it can be found here:

http://dev.deluge-torrent.org/wiki/Plugins/Categorise

contact me for suggestion or feedbacks at ledzgio@writeme.com

bye
by ledzgio
Mon Mar 08, 2010 8:01 pm
Forum: Development
Topic: torrent type identification
Replies: 2
Views: 2618

Re: torrent type identification

I'm trying to find out some main categories in order to move downloaded torrents to different directories depending on the torrent type (audio, video, etc., analyzing the contained files with it). I think i can use mimetypes module to achive my goal. I guess we can consider 5 main categories: - vide...
by ledzgio
Sun Mar 07, 2010 2:39 pm
Forum: Development
Topic: torrent type identification
Replies: 2
Views: 2618

torrent type identification

Hi to all, i need to find out the type of the torrent, if it is a video, audio, application, image, etc. Which is the best way to identify the torrent? is there a way to get thi information from the tracker or directly from the torrent or just identifying it by it's extension (mp3, avi, txt, etc.)? ...
by ledzgio
Thu Oct 22, 2009 3:04 pm
Forum: Plugins
Topic: Help set torrent file priorities
Replies: 1
Views: 1832

Re: Help set torrent file priorities

I finally created a file_priorities array like this: torrent = component.get("TorrentManager")[torrent_id] files = torrent.get_files() files_priorities = [] for f in files: result = self._is_fake_file(f) if(result): files_priorities.append(0) else: files_priorities.append(1) torrent.set_fi...
by ledzgio
Thu Oct 22, 2009 1:16 pm
Forum: Plugins
Topic: Help set torrent file priorities
Replies: 1
Views: 1832

Help set torrent file priorities

Hi all, i have to set torrent priorities before start downloading it..i have to mark as "do not download" some files inside the torrent! I've found within the API the function torrent.set_file_priorities(file_priorities) but i don't know what exactly file_priorities is. Which is the exact ...
by ledzgio
Wed Oct 21, 2009 9:17 am
Forum: Plugins
Topic: Remove file from torrent
Replies: 4
Views: 3306

Re: Remove file from torrent

Right! I did not think about this issue...in this case, how can i remove a file before start downloading it?? for example i could remove unnecessary files from the torrent before it starts or removing unecessary files after been moved to the new locatio. Any other idea? Any help will be appreciated....
by ledzgio
Wed Oct 21, 2009 8:50 am
Forum: Plugins
Topic: Remove file from torrent
Replies: 4
Views: 3306

Re: Remove file from torrent

Yes, you are right...but how can i remove it from downloads? I guess this is more complicated and i could just remove it before moving...

I have the object torrent and i get files from it with:

torrent.get_files()

How can i remove a file from the torrent?

thanks again
by ledzgio
Wed Oct 21, 2009 7:49 am
Forum: Plugins
Topic: Remove file from torrent
Replies: 4
Views: 3306

Remove file from torrent

Hi to all, i'm working on my fist deluge plugin and i have a question about its development.. I have to remove a file from inside a torrent (on torrent finished event) before to move the torrent storage and update its state. I could remove the file from filesystem before move the torrent to the new ...