[Plugin] DeletePartials - deletes partial files

Suggest, post, or discuss plugins for Deluge
TomSoul

[Plugin] DeletePartials - deletes partial files

Postby TomSoul » Sun Feb 14, 2010 12:14 pm

Hello everyone. I couldn't find an easy way to remove those extra files that Deluge leaves behind when setting "Do Not Download" on some files, so I wrote one.

The idea is that that when the download pieces don't match file boundaries, sometimes files marked "Do Not Download" are also created. The result is that after a torrent is finished, there could be partial files with a few kilobytes in them mixed with the proper files. Which is annoying.

When a torrent is removed from Deluge, the plugin will check if there are files that are marked "Do Not Download", and delete those. Resulting empty directories are also deleted.

If you want to try it, the plugin egg is attached or see site https://code.google.com/archive/p/delug ... epartials/

Any feedback is appreciated.
Attachments
DeletePartials-0.1-py2.6.egg
(11.98 KiB) Downloaded 831 times
DeletePartials-0.1-py2.7.egg
(11.98 KiB) Downloaded 2926 times

hallucngn

Re: New plugin: delete partial files

Postby hallucngn » Wed Feb 24, 2010 9:26 am

thx, i was looking for something like this, great addition

atfosan
New User
New User
Posts: 4
Joined: Sun Apr 26, 2009 5:19 am
OS or Distro: Debian
Location: Russia
Contact:

Re: New plugin: delete partial files

Postby atfosan » Wed Mar 03, 2010 3:37 pm

And how about cerrently active torrents? Is this plugin allow to create partial files by Deluge?
I can't test it because I have a problem with installation: I put egg-file of this plugin in ~/.config/deluge/plugins and nothing happened.
There is no this module in Parameters/Modules list. Does this plugin support 1.2.1 version?

TomSoul

Re: New plugin: delete partial files

Postby TomSoul » Thu Mar 04, 2010 2:34 pm

atfosan wrote:And how about cerrently active torrents? Is this plugin allow to create partial files by Deluge?

Yes, the files are still created when a torrent is active. There is no way around this, I think.

The plugin was compiled against a recent source tree. It is working for me on 1.2 and 1.2.1. Maybe you should try the Install Plugin and Rescan Plugin -buttons, if you haven't.

atfosan
New User
New User
Posts: 4
Joined: Sun Apr 26, 2009 5:19 am
OS or Distro: Debian
Location: Russia
Contact:

Re: New plugin: delete partial files

Postby atfosan » Fri Mar 05, 2010 3:44 am

TomSoul wrote:Yes, the files are still created when a torrent is active. There is no way around this, I think.

For example uTorrent create *.dat-file... I think it's more convenience. You can't execute uncompleted files which write errors...
Also my Deluge is deleting all files of uncompleted torrents without any problems and without this pluggin...

TomSoul wrote:The plugin was compiled against a recent source tree. It is working for me on 1.2 and 1.2.1. Maybe you should try the Install Plugin and Rescan Plugin -buttons, if you haven't.

I have already try it... Results are the same.

Cas
Top Bloke
Top Bloke
Posts: 3463
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: New plugin: delete partial files

Postby Cas » Sat Mar 13, 2010 1:30 pm

Great plugin Tomsoul, you should create a wiki page for the Plugins list :D

ledzgio
Member
Member
Posts: 29
Joined: Tue Oct 20, 2009 9:24 pm

Re: New plugin: delete partial files

Postby ledzgio » Sat Mar 13, 2010 6:06 pm

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

gazpachoking
Super Seeder
Super Seeder
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
OS or Distro: WHS
Location: Pittsburgh, USA
Contact:

Re: New plugin: delete partial files

Postby gazpachoking » Sun Mar 14, 2010 7:15 am

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

How would that be different than running both plugins?

DSpider
Member
Member
Posts: 42
Joined: Tue Nov 09, 2010 11:32 am

Re: [Plugin] DeletePartials - deletes partial files

Postby DSpider » Tue Nov 09, 2010 6:43 pm

Just to be clear, this plugin deletes partial files only when you remove the torrent from the list. Clicking "Remove With Data" removes the whole thing, obviously. What it doesn't do is deal with partial files during downloading or even after the download finishes (like hiding them, stuffing them inside a .dat file like uTorrent, etc). One thing's for sure, tho: it's damn useful ! Beats me why Deluge doesn't support this feature by default. I think it should come with this plugin preinstalled AND checked because when I remove a torrent in 99% cases it means I'm done seeding it. And I'm sure it's the same with most users as well.


Mr. Soul, until a better method comes along, can you please make one that puts the partial files (ie. the ones with the "Do Not Download" flag) inside a ".cache" folder or something ? The dot in front of the folder hides files on Linux. And maybe adding the -h attribute for those running Windows. You can call it HidePartials.

A container or wrapper of some kind would be even better. Though I'm not sure if the plugin system permits it.

Thank you.


atfosan wrote:I have a problem with installation: I put egg-file of this plugin in ~/.config/deluge/plugins and nothing happened.
There is no this module in Parameters/Modules list. Does this plugin support 1.2.1 version?


Apparently you have to rename it something shorter ("DeletePartials.egg") otherwise it won't show up in the Plugins list (using 1.3.1 here).

Lazybones
Leecher
Leecher
Posts: 62
Joined: Sat Dec 31, 2011 11:00 pm
OS or Distro: Debian

Re: [Plugin] DeletePartials - deletes partial files

Postby Lazybones » Mon Feb 20, 2012 11:18 pm

Any chance of a python 2.7 egg getting posted?


Return to “Plugins”

Who is online

Users browsing this forum: No registered users and 2 guests