deFlate - unrar plugin RC9+ (gtk/web)

Suggest, post, or discuss plugins for Deluge
Post Reply
mrbrdo
Member
Member
Posts: 37
Joined: Mon Jun 02, 2008 6:18 am

deFlate - unrar plugin RC9+ (gtk/web)

Post by mrbrdo »

This plugin will unrar a rar file if it's present in the torrent. It works if you have a normal release, like an episode of some series (files like .rar, .r01, .r02... OR .part01.rar, .part02.rar...). If you have a torrent with multiple rars that are not related (such as pics.rar, vids.rar) it will only unrar the first one. But usually there's just one archive (split into more rar files) anyway.
TESTED: - SVN - RC9

To install:
1. copy the egg file into your plugins directory, restart deluged and enable in config. Then set the path to the 'unrar' binary/executable in the deFlate settings (ubuntu: /usr/bin/unrar which is also the default).
that's it.

When you click the appropriate button (see attached image), it will start decompressing. There is no progress bar, but you can check the output of the unrar command at and time (also via the webui).
Image
deluge_gtk.jpg
deluge_gtk.jpg (9.59 KiB) Viewed 11442 times
Leave feedback please...
UPDATE: now works on RC9 aswell.
UPDATE: now generates a log file 'deFlate.log' which can also be viewed in the webui. little bugfix too.
UPDATE: now works in gtk/remote gtk ui too
Attachments
deFlate-0.1-py2.5.rar
(18.85 KiB) Downloaded 872 times
junxuan
Member
Member
Posts: 13
Joined: Mon Aug 11, 2008 10:07 am

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by junxuan »

very useful plugin thanks.. juz a suggestion..when unraring could you make some sort of a progrss bar? and a little icon for the deFlate option :P
mrbrdo
Member
Member
Posts: 37
Joined: Mon Jun 02, 2008 6:18 am

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by mrbrdo »

thanks.
for the progress bar: yes it's possible, i will try to add this in a few days.. is it the gtk ui or web ui that you're interested in?
for the icon: it's possible in gtk ui (i'm not exactly sure which icon you meant, or where do you want it to be), but for the web ui it's a bit hacky at the moment, so i will wait until it's properly implemented there. besides in web ui i think the icon is only needed for the white skin, but for the classic skin it's not needed.
junxuan
Member
Member
Posts: 13
Joined: Mon Aug 11, 2008 10:07 am

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by junxuan »

im more intererested for the gtk ui(but i think you shud make it 4 every1 lol) , and by the option i mean the right-click drop down menu, its juz wierd cuz all the other options have icons lol :P
pmootrey
New User
New User
Posts: 3
Joined: Sat Jan 17, 2009 3:56 am

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by pmootrey »

Is this still under development. It is not working under version 1.1.0
tyskis
Member
Member
Posts: 16
Joined: Sat Sep 27, 2008 12:15 pm

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by tyskis »

pmootrey wrote:Is this still under development. It is not working under version 1.1.0
It does work for me in 1.1.0. Try to input the path for unrar in the plugin settings.
pmootrey
New User
New User
Posts: 3
Joined: Sat Jan 17, 2009 3:56 am

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by pmootrey »

That doesnt seem to help. I am on 64bit if that makes a diffrence, and its complaining about some template.....
pmootrey
New User
New User
Posts: 3
Joined: Sat Jan 17, 2009 3:56 am

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by pmootrey »

--Deluge Error--
AttributeError : no template named "torrent_deflate" in template-dirs:['/usr/lib64/python2.5/site-packages/deluge/ui/webui/templates/classic/', '/home/m6/.config/deluge/plugins/deFlate-0.1-py2.5.egg/deflate/template']
path : /torrent/deFlate/d2037047bd34d63a34214b98fdeda73d36fddd47
file : /usr/lib64/python2.5/site-packages/deluge/ui/webui/render.py in __getattr__, line 85

--Input--
<Storage {'redir': '/torrent/info/d2037047bd34d63a34214b98fdeda73d36fddd47'}>

--Versions--
WebUi : 1.1.0r
Python 2.5.2 (r252:60911, Jan 15 2009, 21:12:31)
[GCC 4.3.2]:

--Traceback--
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/lib/webpy022/webapi.py", line 310, in wsgifunc
result = func()
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
func = lambda: handle(inp, fvars)
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
return tocall(*([x and urllib.unquote(x) for x in args] + fna))
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/page_decorators.py", line 75, in deco
return func(self, name) #check_session:ok
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/page_decorators.py", line 93, in deco
return func(self, name) #check_connected:ok
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/page_decorators.py", line 48, in deco
res = func(self, name) #deluge_page_noauth
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/page_decorators.py", line 122, in deco
return func (self, torrent_list) #torrent_list
File "/home/m6/.config/deluge/plugins/deFlate-0.1-py2.5.egg/deflate/webui.py", line 78, in GET
return api.render.torrent_deflate(torrent_id, torrent_file, extra_msg, already_extracted, action_url)
File "/usr/lib64/python2.5/site-packages/deluge/ui/webui/render.py", line 86, in __getattr__
[r.loc for r in self.renderers + self.plugin_renderers] )
4est

Re: deFlate - unrar plugin RC9+ (gtk/web)

Post by 4est »

Hello

deflate no longer works in 1.1.9 version :(

Any idea on how to make it work?
Post Reply