[Plugin] DeletePartials - deletes partial files

Suggest, post, or discuss plugins for Deluge
bakape
New User
New User
Posts: 2
Joined: Tue Mar 13, 2012 5:07 pm

Re: [Plugin] DeletePartials - deletes partial files

Post by bakape »

Lazybones wrote:Any chance of a python 2.7 egg getting posted?
You can compile the egg from source with

Code: Select all

python setup.py bdist_egg
Since I did anyway http://www.mediafire.com/?zr8gzliqmltvsss
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [Plugin] DeletePartials - deletes partial files

Post by Cas »

Since the code is identical you can also simply rename the 2.6 version to 2.7.
discmeister
Member
Member
Posts: 45
Joined: Sat Jul 03, 2010 7:20 pm

Re: [Plugin] DeletePartials - deletes partial files

Post by discmeister »

I have renamed it from 2.6 to 2.7, and it 'uploads' via the webGUI. I see it in my list of Plugins then. However, when I tick it, Apply, then Okay, and then re-open the Plugins window, the tick disappears.

Has anyone any suggestions? I'm running 1.3.5 on 12.04. I'm keen for DeletePartials to actually delete the containing folder when I've moved some of that folder's contents to elsewhere on my server. Would it even do that anyway?

Regards to all,

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

Re: [Plugin] DeletePartials - deletes partial files

Post by Cas »

Please check logs for any errors.
discmeister
Member
Member
Posts: 45
Joined: Sat Jul 03, 2010 7:20 pm

Re: [Plugin] DeletePartials - deletes partial files

Post by discmeister »

Happy to do this, Cas. Where are the log files kept and I'll post any resulting errors here?

Kind regards,

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

Re: [Plugin] DeletePartials - deletes partial files

Post by Cas »

DoYouWantKarate
New User
New User
Posts: 2
Joined: Wed May 08, 2013 1:04 am

Re: [Plugin] DeletePartials - deletes partial files

Post by DoYouWantKarate »

Wasn't the functionality this plugin provides added to Deluge at some point?

If so, what version was it added?

Thanks
pcordes
New User
New User
Posts: 2
Joined: Wed Nov 26, 2014 1:31 am

Re: [Plugin] DeletePartials - deletes partial files

Post by pcordes »

To make a .egg for my system, since it isn't python2.6, I went to the base URL for the 2.6 .egg download, and got to the source. https://code.google.com/p/deluge-deletepartials/

So:

Code: Select all

svn checkout http://deluge-deletepartials.googlecode.com/svn/trunk/ deluge-deletepartials-read-only
cd deluge-deletepartials-read-only/
python setup.py bdist_egg
# then move/copy/symlink dist/DeletePartials-0.1-py2.7.egg to your deluge plugin dir
cd ..
ln -s deluge-deletepartials-read-only/dist/DeletePartials-0.1-py2.7.egg .
I wish this plugin was part of Deluge and enabled by default, to work around the sillyness of libtorrent not deleting partials. Now I'm scanning my filesystem for files with unwritten extents, to find files left over from torrents I gave up on. (

Code: Select all

find ... -exec xfs_bmap -vpl {} + | less[code]  FTW, really glad I use XFS.)
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [Plugin] DeletePartials - deletes partial files

Post by Cas »

From: http://dev.deluge-torrent.org/wiki/Plug ... ingPlugins
If a plugin does not have a Python version available it is usually possible to rename it to match your installed version (e.g. Plugin-1.0-py2.6.egg to Plugin-1.0-py2.7.egg) and it will still run normally.
EgorKek
New User
New User
Posts: 2
Joined: Mon Sep 12, 2016 9:46 am

Re: [Plugin] DeletePartials - deletes partial files

Post by EgorKek »

Hi. I apologize for my English because I use translator.
I have this problem.
OS. Debian and Deluge Deluge 1.3.12
Not the plugin works DeletePartials
here is the log:

Code: Select all

[DEBUG   ] 12:35:05 rpcserver:396 Registering method: deletepartials.get_config
[DEBUG   ] 12:35:05 rpcserver:396 Registering method: deletepartials.set_config
[DEBUG   ] 12:35:05 component:256 Deregistering Component: CorePlugin.DeletePartials
[DEBUG   ] 12:35:05 pluginbase:57 CorePlugin initialized..
[DEBUG   ] 12:35:05 configmanager:111 Getting config 'deletepartials.conf'
[ERROR   ] 12:35:05 rpcserver:304 Exception calling RPC request: 'CorePlugin.DeletePartials'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 528, in enable_plugin
    self.pluginmanager.enable_plugin(plugin)
  File "/usr/lib/python2.7/dist-packages/deluge/core/pluginmanager.py", line 82, in enable_plugin
    super(PluginManager, self).enable_plugin(name)
  File "/usr/lib/python2.7/dist-packages/deluge/pluginmanagerbase.py", line 151, in enable_plugin
    component.start([instance.plugin._component_name])
  File "/usr/lib/python2.7/dist-packages/deluge/component.py", line 290, in start
    if self.components[name]._component_depend:
KeyError: 'CorePlugin.DeletePartials'
most interesting is that it worked and after a while stopped working. unfortunately I did not notice when, in order to understand what might affect the operation of this plugin :-(

what can you recommend to diagnose and fix problems?
Post Reply