WebUi Plugin 0.5

Suggest, post, or discuss plugins for Deluge
Post Reply
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

WebUi Plugin 0.5

Post by mvoncken »


development has moved to deluge-svn, this starter post will not be updated anymore.
new features only in 0.6

Hi, I wrote a WebUi plugin.

Features:
-list torrents,add torrent,pause,restart,delete,change priority, auto refresh.
-fully skinnable/templatable.

Image

Install:
*Deluge 0.5.6+ :Included in deluge
*Deluge 0.6 : "deluge --ui=web"
*Windows: Alfa14 and up.

Unstable/Dev:
Download from : http://mvoncken.sohosted.com/deluge/
0.5 : Copy the WebUi folder to the plugins folder (/usr/share/deluge/plugins/).
0.6 : start the deamon , execute "<webui-directory>/run_webserver06"

After installation:
Enable the plugin in the deluge-preferences, and choose a password.
go to http://localhost:8112

Greasemonkey script for adding torrents:
http://userscripts.org/scripts/show/12639

Help Wanted
*I would love some help on a new template.
*New features
Due to carreer changes/opportunities I have to spend more private time learning C#/dotnet 3.5 , so I won't do much about new features ,
I will do deluge 0.6 compatibility, stability updates and some code cleanup, but if you want new features: Please write a patch!, I will most probably use it.

Updates:
2007-9-17:
*included web.py-0.22 because of web.py-0.21 problems in feisty.
*fixed the plain template.
*up/down sorting.
2007-9-23:
*only includes 1 template, based on simple from somedude.
*Sorting with arrow feedback,and remembers state.
*auto refresh works now
*b64 workaround for torrent-uploads
*maybe I fixed a threading bug in add_torrent.
2007-9-23(rev.29):
*py 2.4 fixes
*relative redirects
2007-9-27(rev.40):
*fully REST
*template reorganisation.
*add tango icons , (non-unicode browsers have sort-arrows too now)
*changed title to Beta.
2007-9-28(rev.48): Warning:You will have to set a new password.
*config for button-style
*password is encrypted, and user is removed
*remote api for adding torrent's
2007-9-29(rev.56):
*greasemonkey script !
*see full changelog.
2007-9-29(rev.57):
*small bugfix on 56
2007-10-6(rev.80):
*lots of internal changes to run inside of gtk instead of using a webserver process.
*queue up/down
2007-10-16(rev.82):
*sync to markybob/deluge-svn:
-default "run in process" for linux, default "run in GTK" for windows.
-stability of "run in process" improved.

2007-10-23 (rev.103)
*add improved debugerror
*persistent cookies
*cookie-default for refresh_secs
*0.6 compatibility (torrent-list ,torrent-info and pause)
*persistent sessions
*logout
*global stats
*uncompleted prefs for upload/download limits
* 'subclassed templates' + example
*removed settings for run inside gtk,download_location,torrent_location.
*sometimes displays a blank page, problem not diagnosed yet->just press refresh.

2007-10-23 (stable.rev.87 / backports from.dev)
*add improved debugerror
*persistent cookies
*cookie-default for refresh_secs

2007-10-29 (rev.117 / deluge 0.5.6.2)
*fix url routing bug for default-page http://localhost:8112/
*disable link to non working config page
*disable persistent-sessions+logout : they were causing blank pages
*force_reannounce

2007-10-29 (rev.124)
*minor refactoring
*integration-tests , to avoid broken commits
*improved error-handling on invalid unicode-strings in torrent-info.

2007-11-10(rev.130)
*translation fixes
*tests/ 0.6 tests.

rev.160/ deluge 5.6.7
*lots of minor changes.
*https
*advanced template :javascript/css (will never work on IE6)
*advanced template: filters on torrent-state+tracker.

rev.163
*greasemonkey userscript works on private sites.

Full changelog for dev:
http://codebrowse.launchpad.net/~mvonck ... ev/changes
Last edited by mvoncken on Tue Jul 15, 2008 10:19 am, edited 85 times in total.
dev: webui, core, labels | irc:vonck7 |
sluthead
Leecher
Leecher
Posts: 62
Joined: Sun Sep 02, 2007 8:50 am

Re: WebUI (alfa)

Post by sluthead »

thanks, can't wait to test it :D
sluthead
Leecher
Leecher
Posts: 62
Joined: Sun Sep 02, 2007 8:50 am

Re: WebUI (alfa)

Post by sluthead »

I can't upload torrents with it though.

<class 'dbus.exceptions.DBusException'> at /torrent/add
org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last): File "/var/lib/python-support/python2.5/dbus/service.py", line 655, in _message_cb retval = candidate_method(self, *args, **keywords) File "/usr/share/deluge/plugins/WebUi/dbus_interface.py", line 168, in add_torrent_filecontent filecontent = pickle.loads(filecontent_p) File "pickle.py", line 1374, in loads return Unpickler(file).load() File "pickle.py", line 858, in load dispatch[key](self) File "pickle.py", line 970, in load_string raise ValueError, "insecure string pickle" ValueError: insecure string pic


GUI looks nice, there's plenty to be improved but so far so far good:D
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: WebUI (alfa)

Post by mvoncken »

sluthead,
I can't reproduce that upload-error , it could have been a bug in the plain template.
dev: webui, core, labels | irc:vonck7 |
sluthead
Leecher
Leecher
Posts: 62
Joined: Sun Sep 02, 2007 8:50 am

Re: WebUI (alfa)

Post by sluthead »

both templates produce the error.
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

Re: WebUI (alfa)

Post by abubin »

i am sorry if this question sounds silly but can I use this webui plugin without gnome/kde? Can I logon remotely from other windows pc on my network and manage my torrents?
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: WebUI (alfa)

Post by mvoncken »

abubin wrote:i am sorry if this question sounds silly but can I use this webui plugin without gnome/kde? Can I logon remotely from other windows pc on my network and manage my torrents?
Deluge 0.5.5 must be running , so the server needs gnome/kde (or icewm or xfce).
But you can remotely manage your torrents from other pc's.

edit: 0.5 --> 0.5.5
Last edited by mvoncken on Wed Sep 19, 2007 7:25 pm, edited 1 time in total.
dev: webui, core, labels | irc:vonck7 |
crux
New User
New User
Posts: 3
Joined: Wed Sep 19, 2007 5:36 pm

Re: WebUI (alfa)

Post by crux »

mvoncken-
Thanks so much for your work on this. I have been looking for this feature for some time now and I think everyone else will find it extremely helpful.

I followed your steps to unpack the folder in deluge plugins, went into Deluge and enabled in Plugins and now try to browse to localhost:8112 and I am getting a page not found.

I downloaded the files yesterday from http://mvoncken.sohosted.com/deluge/. I am using Deluge 0.5.2. Do I need to have apache running as well or are there any other application requirements?

Thanks!
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: WebUI (alfa)

Post by mvoncken »

crux wrote:mvoncken-
Thanks so much for your work on this. I have been looking for this feature for some time now and I think everyone else will find it extremely helpful.

I followed your steps to unpack the folder in deluge plugins, went into Deluge and enabled in Plugins and now try to browse to localhost:8112 and I am getting a page not found.

I downloaded the files yesterday from http://mvoncken.sohosted.com/deluge/. I am using Deluge 0.5.2. Do I need to have apache running as well or are there any other application requirements?

Thanks!
No Apache required.
I'm running deluge-svn, but I will support deluge stable from 0.5.5 and up.
I guess deluge 0.5.2 is different so that's the main problem.

If you still have problems after installing 0.5.5:
I am online a lot on #deluge usually CET 17:00 to 24:00 ,nick=vonck7 , and if you pm me I could allso give you my MSN(for dutch people msn is the only IM).
dev: webui, core, labels | irc:vonck7 |
crux
New User
New User
Posts: 3
Joined: Wed Sep 19, 2007 5:36 pm

Re: WebUI (alfa)

Post by crux »

Just wanted to drop a line back and say it worked great for me! I did receive a dbus error but it was because I hit refresh to see the status of the torrent and my small cable line was exhausted from maxing out on d/l and u/l speeds. Once I dropped them a little in preferences I didn't see the error anymore.

Great work and thanks!
Post Reply