diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-04-28 23:23:40 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-04-28 23:23:40 +0200 |
commit | 240427444f1b80b70daff266a00cac43c4193368 (patch) | |
tree | 692cbbe461fdd0cc8b4dd0fb6b1d46586c88f24c | |
parent | fixed fileupload (diff) | |
download | pyload-240427444f1b80b70daff266a00cac43c4193368.tar.xz |
trying to fix curl chunk
-rw-r--r-- | pyload/plugins/network/CurlChunk.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyload/plugins/network/CurlChunk.py b/pyload/plugins/network/CurlChunk.py index 7f9d6282a..b49ec653f 100644 --- a/pyload/plugins/network/CurlChunk.py +++ b/pyload/plugins/network/CurlChunk.py @@ -25,6 +25,7 @@ from time import sleep import codecs import pycurl +from pyload.plugins.Request import Request from pyload.utils.fs import fs_encode, fs_decode, safe_filename from CurlRequest import CurlRequest @@ -123,6 +124,7 @@ re_filename = re.compile(r"filename(?P<type>=|\*=(?P<enc>.+)'')(?P<name>.*)", re class CurlChunk(CurlRequest): def __init__(self, id, parent, range=None, resume=False): + Request.__init__(self, None, parent.getContext()[0]) self.setContext(*parent.getContext()) self.id = id |