diff options
author | Jeix <devnull@localhost> | 2011-02-12 10:42:46 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2011-02-12 10:42:46 +0100 |
commit | 2350d53f30de8d45c0f837c8bbdb57b06dece097 (patch) | |
tree | bb6eb6d509f4e9da602689d75f08bc69e510dc3c /module/plugins/hoster | |
parent | gui optimisations (diff) | |
download | pyload-2350d53f30de8d45c0f837c8bbdb57b06dece097.tar.xz |
xdcc fixes
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/Xdcc.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/hoster/Xdcc.py b/module/plugins/hoster/Xdcc.py index 4ed718823..5dc1aafb8 100644 --- a/module/plugins/hoster/Xdcc.py +++ b/module/plugins/hoster/Xdcc.py @@ -45,8 +45,8 @@ class Xdcc(Hoster): __author_mail__ = ("jeix@hasnomail.com")
def setup(self):
- self.debug = 2 #0,1,2
- self.timeout = 10
+ self.debug = 0 #0,1,2
+ self.timeout = 30
self.multiDL = False
@@ -122,10 +122,13 @@ class Xdcc(Hoster): readbuffer = ""
done = False
retry = None
+ m = None
while True:
+
# done is set if we got our real link
- if done: break
-
+ if done:
+ break
+
if retry:
if time.time() > retry:
retry = None
@@ -188,7 +191,6 @@ class Xdcc(Hoster): if self.debug is 1:
print "%s: %s" % (msg["origin"], msg["text"])
- # You already requested that pack
if "You already requested that pack" in msg["text"]:
retry = time.time() + 300
@@ -196,7 +198,7 @@ class Xdcc(Hoster): self.fail("Wrong channel")
m = re.match('\x01DCC SEND (.*?) (\d+) (\d+)(?: (\d+))?\x01', msg["text"])
- if m != None:
+ if m:
done = True
# get connection data
|