Commit [90b787] Maximize Restore History

[plugin.program.rtorrent] updated to version 0.10.2

spiff spiff 2010-11-02

added plugin.program.rtorrent/resources/language/Dutch/strings.xml
added plugin.program.rtorrent/resources/lib/__init__.py
added plugin.program.rtorrent/resources/__init__.py
changed plugin.program.rtorrent/resources/language/German/strings.xml
changed plugin.program.rtorrent/resources/lib/functions.py
changed plugin.program.rtorrent/resources/lib/mode_action.py
changed plugin.program.rtorrent/resources/lib/mode_files.py
changed plugin.program.rtorrent/resources/lib/mode_main.py
changed plugin.program.rtorrent/resources/lib/mode_play.py
changed plugin.program.rtorrent/README
changed plugin.program.rtorrent/addon.xml
changed plugin.program.rtorrent/changelog.txt
changed plugin.program.rtorrent/default.py
changed plugin.program.rtorrent/icon.png
copied plugin.program.rtorrent/resources/lib/global.py -> plugin.program.rtorrent/resources/lib/globals.py
plugin.program.rtorrent/resources/language/Dutch/strings.xml Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/lib/__init__.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/__init__.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/language/German/strings.xml Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/lib/functions.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/lib/mode_action.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/lib/mode_files.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/lib/mode_main.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/lib/mode_play.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/README Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/addon.xml Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/changelog.txt Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/default.py Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/icon.png Diff Switch to side-by-side view
Loading...
plugin.program.rtorrent/resources/lib/global.py to plugin.program.rtorrent/resources/lib/globals.py
--- a/plugin.program.rtorrent/resources/lib/global.py
+++ b/plugin.program.rtorrent/resources/lib/globals.py
@@ -1,11 +1,5 @@
 # Imports
-from functions import *
-import os
-import sys
-import xbmc
-import xbmcaddon
-import xbmcgui
-import xmlrpc2scgi
+import os, sys, xbmc, xbmcaddon, xbmcgui, xbmcplugin, xmlrpc2scgi
 
 # Addon constants
 __plugin__ = "RTorrent"
@@ -14,12 +8,18 @@
 __url__ = "http://www.danieljolly.com"
 __credits__ = "See README"
 __version__ = "0.10.1"
-__date__ = "11/09/2010"
+__date__ = "25/09/2010"
+
 
 #Set a variable for Addon info and language strings
 __addon__ = xbmcaddon.Addon( __addonID__ )
 __setting__ = __addon__.getSetting
 __lang__ = __addon__.getLocalizedString
+__cwd__ = __addon__.getAddonInfo('path')
+
+#Set plugin fanart
+#TODO: Check to see if this actually works or not, haven't managed to see it yet!
+xbmcplugin.setPluginFanart(int(sys.argv[1]), os.path.join(__cwd__,'fanart.jpg'))
 
 # Connection constants
 # Check to see if addon is set to socket or port mode
@@ -50,7 +50,7 @@
 rtc = connectionOK()
 
 # Directory containing status icons for torrents
-__icondir__ = xbmc.translatePath(os.path.join(os.getcwd(),'resources','icons'))
+__icondir__ = xbmc.translatePath(os.path.join(__cwd__,'resources','icons'))
 
 # Try to ork out if the copy of rTorrent we're connecting to is running on the same machine.
 if __setting__('use_socket')=='0': # Currently this feature is untested with remote domain sockets
@@ -59,5 +59,4 @@
 	else:
 		__islocal__=0
 else:
-		__islocal__=1
-print "the plugin is local to where rTorrent is running? "+str(__islocal__)+		__islocal__=1