[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
OS or Distro: Ubuntu

Re: [Plugin] DeletePartials - deletes partial files

Postby bakape » Tue Mar 13, 2012 5:40 pm

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: 3463
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: [Plugin] DeletePartials - deletes partial files

Postby Cas » Tue Mar 13, 2012 6:27 pm

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

Postby discmeister » Wed Sep 12, 2012 6:39 pm

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: 3463
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: [Plugin] DeletePartials - deletes partial files

Postby Cas » Wed Sep 12, 2012 11:49 pm

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

Postby discmeister » Thu Sep 13, 2012 9:12 am

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: 3463
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: [Plugin] DeletePartials - deletes partial files

Postby Cas » Thu Sep 13, 2012 11:19 am


DoYouWantKarate
New User
New User
Posts: 1
Joined: Wed May 08, 2013 1:04 am
OS or Distro: Debian

Re: [Plugin] DeletePartials - deletes partial files

Postby DoYouWantKarate » Wed May 08, 2013 1:13 am

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
OS or Distro: Ubuntu

Re: [Plugin] DeletePartials - deletes partial files

Postby pcordes » Wed Nov 26, 2014 1:42 am

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]find ... -exec xfs_bmap -vpl {} + | less[code] FTW, really glad I use XFS.)

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

Re: [Plugin] DeletePartials - deletes partial files

Postby Cas » Wed Nov 26, 2014 9:45 am

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
OS or Distro: Debian

Re: [Plugin] DeletePartials - deletes partial files

Postby EgorKek » Mon Sep 12, 2016 9:51 am

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?


Return to “Plugins”

Who is online

Users browsing this forum: No registered users and 5 guests