add enabled plugins to send info

This commit is contained in:
Marcos Pinto 2008-02-13 09:47:34 +00:00
parent bab5b518ab
commit 3e2f8020bb
2 changed files with 3 additions and 3 deletions

View File

@ -210,7 +210,7 @@ def exec_command(executable, *parameters):
warning.run()
warning.destroy()
def send_info():
def send_info(plugins=None):
import threading
class Send_Info_Thread(threading.Thread):
def __init__(self):
@ -227,7 +227,7 @@ def send_info():
try:
urllib.urlopen("http://deluge-torrent.org/stats_get.php?processor=" + \
platform.machine() + "&python=" + platform.python_version() \
+ "&os=" + platform.system() + "&pygtk=" + pygtk)
+ "&os=" + platform.system() + "&pygtk=" + pygtk + "&plugins=" + plugins)
except IOError:
print "Network error while trying to send info"
else:

View File

@ -118,7 +118,7 @@ class DelugeGTK:
import time
def _run_script():
common.send_info()
common.send_info(self.config.get("enabled_plugins"))
info_file = os.path.join(common.CONFIG_DIR, 'infosent')