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).
deluge_gtk.jpg (9.59 KiB) Viewed 11443 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
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.
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
--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
--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] )