Kodi Community Forum
[RELEASE] uTorrent Control Plugin - Manage µTorrent queue - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] uTorrent Control Plugin - Manage µTorrent queue (/showthread.php?tid=89380)

Pages: 1 2 3 4 5 6


[RELEASE] uTorrent Control Plugin - Manage µTorrent queue - taxigps - 2011-01-03

uTorrent Control Plugin

Manages your uTorrent queue from within XBMC!

source code manage at github https://github.com/taxigps/plugin.program.utorrent.

you can install it from the official repo. please install and update in add-ons manage screen of xbmc .


Install:
1. Enable WebUI for uTorrent
2. Enable Token Authentication for uTorrent
3. Install the plug-in
4. Plug-in Settings: Include 1)use https or not, 2)WebUI port, 3)url path (default is /gui/ and some uTorrent server use path /torrent/), 4)username and password of uTorrent
5. Enjoy!

Usage:
1. click left mouse key on items(or press keyboard 'return'):
  • Pause
  • Resume
  • Start
  • Stop
  • Force Start
  • Remove
  • Remove and Remove Data
  • Stream
2. click right mouse key on items(or press keyboard 'c'):
  • Pause All
  • Resume All
  • Stop All
  • Start All
  • Limit Upload / Download Speeds
  • Add Files (from Torrents dir.)



- ubuntuf4n - 2011-01-03

Really Nice!

Will check it out..


- Targettio - 2011-01-04

Hi, I have tried this out and get an error.

http://pastebin.com/m3Ck8JK1

The utorrent webui works as I can log into it from my computer, but the plugin has difficulties.

I am also confused by the 'torrent path' field. Is this the folder where save my torrents? Because I don't save all my torrents in one place. They are saved in different places depending on what it is. At the moment I have it pointed it towards my main download folder, but others are stored else where.


- stoli - 2011-01-05

taxigps Wrote:uTorrent Control Plugin

Manages your uTorrent queue from within XBMC!

source code manage in project xbmc-addons-chinese now. please install and update in add-ons manage screen of xbmcrepository.googlecode.xbmc-addons-chinese.zip.

Install:
1. Enable WebUI for uTorrent
2. Enable Token Authentication for uTorrent
3. Install the plug-in
4. Enter username and password of uTorrent via 'Plug-in Settings'
5. Enjoy!

Doesn't seem to like something in my setup. Other apps can access via the web ui:

Code:
22:27:44 T:2944 M:1574354944   DEBUG: SDLKeyboard: scancode: 28, sym: 13, unicode: 13, modifier: 0
22:27:44 T:2944 M:1574354944   DEBUG: CApplication::OnKey: 61453 pressed, action is Select
22:27:44 T:2944 M:1574293504   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.program.utorrent/)
22:27:44 T:2944 M:1574293504   DEBUG:   ParentPath = [addons://sources/executable/]
22:27:44 T:5736 M:1574293504   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin uTorrent('plugin://plugin.program.utorrent/','0','')
22:27:44 T:5736 M:1574293504    INFO: initializing python engine.
22:27:44 T:5736 M:1574293504   DEBUG: new python thread created. id=13
22:27:44 T:5736 M:1574293504   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the uTorrent plugin...
22:27:44 T:3288 M:1574293504   DEBUG: thread start, auto delete: 0
22:27:44 T:3288 M:1574293504   DEBUG: Python thread: start processing
22:27:44 T:3288 M:1574912000   DEBUG:   msg: 'import site' failed; use -v for traceback
22:27:44 T:3288 M:1575092224  NOTICE: -->Python Interpreter Initialized<--
22:27:44 T:3288 M:1575092224   DEBUG: XBPyThread::Process - The source file to load is C:\Users\stoli\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py
22:27:44 T:3288 M:1575272448   DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\stoli\AppData\Roaming\XBMC\addons\plugin.program.utorrent;C:\Users\stoli\AppData\Roaming\XBMC\addons\script.module.cryptopy\lib;C:\Users\stoli\AppData\Roaming\XBMC\addons\script.module.common.playback\lib;C:\Users\stoli\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:\Program Files\XBMC\addons\script.module.pil\lib;C:\Program Files\XBMC\addons\script.module.pysqlite\lib;special://xbmc/system/python/DLLs;special://xbmc/system/python/Lib;special://xbmcbin/system/python/python24.zip;special://xbmc/system/python\DLLs;special://xbmc/system/python\lib;special://xbmc/system/python\lib\plat-win;special://xbmc/system/python\lib\lib-tk;C:\Program Files\XBMC
22:27:44 T:3288 M:1575272448   DEBUG: XBPyThread::Process - Entering source directory C:\Users\stoli\AppData\Roaming\XBMC\addons\plugin.program.utorrent
22:27:44 T:3288 M:1573015552   DEBUG: unable to load C:\Users\stoli\AppData\Roaming\XBMC\addons\plugin.program.utorrent\resources\language\English (US)\strings.xml: Failed to open file at line 0
22:27:44 T:3288 M:1573007360    INFO: -->Python script returned the following error<--
22:27:44 T:3288 M:1573007360   ERROR: Error Type: exceptions.ValueError
22:27:44 T:3288 M:1573007360   ERROR: Error Contents: invalid literal for int(): false
22:27:44 T:3288 M:1573007360   ERROR: Traceback (most recent call last):
                                              File "C:\Users\stoli\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 254, in ?
                                                listTorrents()
                                              File "C:\Users\stoli\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 91, in listTorrents
                                                tupList = updateList()
                                              File "C:\Users\stoli\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 70, in updateList
                                                complete = int(complete)
                                            ValueError: invalid literal for int(): false
22:27:44 T:3288 M:1573007360    INFO: -->End of Python script error report<--
22:27:44 T:3288 M:1573007360    INFO: Python script stopped
22:27:44 T:3288 M:1573007360   DEBUG: Thread 3288 terminating
22:27:44 T:5736 M:1573060608   DEBUG:  XFILE::CPluginDirectory::WaitOnScriptResult - plugin exited prematurely - terminating
22:27:44 T:2944 M:1573060608   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.program.utorrent/
22:27:44 T:2944 M:1573060608   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.utorrent/) failed
22:27:44 T:2944 M:1573060608   DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable/)
22:27:44 T:2944 M:1573060608   DEBUG:   ParentPath = []
22:27:44 T:5156 M:1572995072   DEBUG: thread start, auto delete: 0
22:27:44 T:4528 M:1572995072   DEBUG: Previous line repeats 1 times.
22:27:44 T:4528 M:1572995072   DEBUG: Thread 4528 terminating
22:27:44 T:5156 M:1573003264 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
22:27:44 T:5156 M:1573003264   DEBUG: Thread 5156 terminating
22:27:44 T:2944 M:1572990976   DEBUG: python thread 13 destructed
22:27:45 T:2944 M:1574072320   DEBUG: SDLKeyboard: scancode: 56, sym: 308, unicode: 0, modifier: 0
22:27:45 T:2944 M:1574109184   DEBUG: CWinEventsWin32::WndProcWindow is active



- taxigps - 2011-01-05

Targettio Wrote:Hi, I have tried this out and get an error.

http://pastebin.com/m3Ck8JK1

The utorrent webui works as I can log into it from my computer, but the plugin has difficulties.

I am also confused by the 'torrent path' field. Is this the folder where save my torrents? Because I don't save all my torrents in one place. They are saved in different places depending on what it is. At the moment I have it pointed it towards my main download folder, but others are stored else where.
1. need more detail debug message. please change the debug mode of utorrent plugin and paste the log file again. change debug mode in this way: modify line 5
in script file plugin.program.utorrent\resources\lib\utilities.py, change to 'DEBUG_MODE = 4'

2. in utorrent plugin, you can add new torrents to download with context menu(click right mouse button or press 'c' key). the plugin will add torrents from 'torrent path'.


- Targettio - 2011-01-06

taxigps Wrote:1. need more detail debug message. please change the debug mode of utorrent plugin and paste the log file again. change debug mode in this way: modify line 5
in script file plugin.program.utorrent\resources\lib\utilities.py, change to 'DEBUG_MODE = 4'

2. in utorrent plugin, you can add new torrents to download with context menu(click right mouse button or press 'c' key). the plugin will add torrents from 'torrent path'.

Ok I will test and post back tonight.


- Jair - 2011-01-07

I'm getting the same error. I sent you the log by mp using debug=4.


Thanks for the work!


- stoli - 2011-01-07

@taxigps - pm'd a link to the log with debug enabled. Too much torrent info to paste link here. Smile


- taxigps - 2011-01-08

Jair Wrote:I'm getting the same error. I sent you the log by mp using debug=4.


Thanks for the work!

stoli Wrote:@taxigps - pm'd a link to the log with debug enabled. Too much torrent info to paste link here. Smile
please update to v1.0.1 and test again.


- Jair - 2011-01-08

Now it works like a charm Big Grin Thank you!


error in script plugin.program.utorrent - Laureus1 - 2011-01-13

Hi,

Somehow I get the following error 'error in script plugin.program.utorrent' when trying to open the Utorrent-plugin 1.0.1 on my W7-machine. I checked the settings in uTorrent, both webUI and token authentication are enabled.

I have also set the same user and password in both the plugin and uTorrent itself. The port is set to 8080 in both the plugin and uTorrent.

Can anybody help me with this?


- taxigps - 2011-01-14

Laureus1 Wrote:Hi,

Somehow I get the following error 'error in script plugin.program.utorrent' when trying to open the Utorrent-plugin 1.0.1 on my W7-machine. I checked the settings in uTorrent, both webUI and token authentication are enabled.

I have also set the same user and password in both the plugin and uTorrent itself. The port is set to 8080 in both the plugin and uTorrent.

Can anybody help me with this?

log file please.


- Laureus1 - 2011-01-14

15:04:50 T:3948 M:151613440 NOTICE: -->Python Interpreter Initialized<--
15:05:12 T:3948 M:151089152 ERROR: Error Type: urllib2.URLError
15:05:12 T:3948 M:151089152 ERROR: Error Contents: <urlopen error (10060, 'Operation timed out')>
15:05:12 T:3948 M:151068672 ERROR: Traceback (most recent call last):
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 257, in ?
listTorrents()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 94, in listTorrents
tupList = updateList()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 64, in updateList
torrentList = getList()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 49, in getList
token = getToken()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 39, in getToken
data = myClient.HttpCmd(tokenUrl)
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\resources\lib\utilities.py", line 89, in HttpCmd
response = urllib2.urlopen(req)
File "special://xbmc/system/python/Lib\urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 358, in open
response = self._open(req, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 376, in _open
'_open', req)
File "special://xbmc/system/python/Lib\urllib2.py", line 337, in _call_chain
result = func(*args)
File "special://xbmc/system/python/Lib\urllib2.py", line 1021, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "special://xbmc/system/python/Lib\urllib2.py", line 996, in do_open
raise URLError(err)
URLError: <urlopen error (10060, 'Operation timed out')>
15:05:12 T:1192 M:150597632 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.program.utorrent/
15:05:12 T:1192 M:150597632 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.utorrent/) failed
15:05:12 T:404 M:150560768 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn


- splatter - 2011-01-14

Hello,

first of all thank you for the script!

But I think I found a minor bug
I think this script got a problem with commas in the Torrent name.

Note this line:
ValueError: invalid literal for int(): Wild (Season 1 Complete)"

The whole torrent name is "Man, Woman, Wild (Season 1 Complete).torrent"
I deleted the torrent and the script worked fine

Full Debug Log:
Pastebin-link


- taxigps - 2011-01-15

Laureus1 Wrote:15:04:50 T:3948 M:151613440 NOTICE: -->Python Interpreter Initialized<--
15:05:12 T:3948 M:151089152 ERROR: Error Type: urllib2.URLError
15:05:12 T:3948 M:151089152 ERROR: Error Contents: <urlopen error (10060, 'Operation timed out')>
15:05:12 T:3948 M:151068672 ERROR: Traceback (most recent call last):
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 257, in ?
listTorrents()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 94, in listTorrents
tupList = updateList()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 64, in updateList
torrentList = getList()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 49, in getList
token = getToken()
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\default.py", line 39, in getToken
data = myClient.HttpCmd(tokenUrl)
File "C:\Users\Laureus\AppData\Roaming\XBMC\addons\plugin.program.utorrent\resources\lib\utilities.py", line 89, in HttpCmd
response = urllib2.urlopen(req)
File "special://xbmc/system/python/Lib\urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 358, in open
response = self._open(req, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 376, in _open
'_open', req)
File "special://xbmc/system/python/Lib\urllib2.py", line 337, in _call_chain
result = func(*args)
File "special://xbmc/system/python/Lib\urllib2.py", line 1021, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "special://xbmc/system/python/Lib\urllib2.py", line 996, in do_open
raise URLError(err)
URLError: <urlopen error (10060, 'Operation timed out')>
15:05:12 T:1192 M:150597632 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.program.utorrent/
15:05:12 T:1192 M:150597632 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.utorrent/) failed
15:05:12 T:404 M:150560768 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn

splatter Wrote:Hello,

first of all thank you for the script!

But I think I found a minor bug
I think this script got a problem with commas in the Torrent name.

Note this line:
ValueError: invalid literal for int(): Wild (Season 1 Complete)"

The whole torrent name is "Man, Woman, Wild (Season 1 Complete).torrent"
I deleted the torrent and the script worked fine

Full Debug Log:
Pastebin-link

need more detail debug message. please change the debug mode of utorrent plugin and paste the log file again. change debug mode in this way: modify line 5
in script file plugin.program.utorrent\resources\lib\utilities.py , change to 'DEBUG_MODE = 4'