summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 00:06:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 00:06:18 +0200
commit5c1fb051fcbc7842bb4f6e879684cda9d7a14cdb (patch)
tree44fccf0954de54947397bfac76633d9f0e6c48a6 /module/ThreadManager.py
parentimprovements, command line link checker (diff)
downloadpyload-5c1fb051fcbc7842bb4f6e879684cda9d7a14cdb.tar.xz
closed #364, changes to online check api
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index ba75764c5..07ab69548 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -112,11 +112,7 @@ class ThreadManager:
@lock
def setInfoResults(self, rid, result):
- for k, v in result.iteritems():
- if k in self.infoResults[rid]:
- self.infoResults[rid][k].update(v)
- else:
- self.infoResults[rid][k] = v
+ self.infoResults[rid].update(result)
def downloadingIds(self):
"""get a list of the currently downloading pyfile's ids"""
@@ -211,7 +207,7 @@ class ThreadManager:
def getIP(self):
"""retrieve current ip"""
- services = [("http://www.whatismyip.com/automation/n09230945.asp", "(\S+)"),
+ services = [("http://automation.whatismyip.com/n09230945.asp", "(\S+)"),
("http://checkip.dyndns.org/",".*Current IP Address: (\S+)</body>.*")]
ip = ""