summaryrefslogtreecommitdiffstats
path: root/module/plugins/Container.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-19 00:36:50 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-19 00:36:50 +0200
commit876673902e5ea8d5336e144cad18d23fda613e94 (patch)
tree5b6ba792882eb110e822b2e64dda2b6a4f3722e9 /module/plugins/Container.py
parentimproved hook loader (diff)
downloadpyload-876673902e5ea8d5336e144cad18d23fda613e94.tar.xz
cleanup
Diffstat (limited to 'module/plugins/Container.py')
-rw-r--r--module/plugins/Container.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/module/plugins/Container.py b/module/plugins/Container.py
index 8d195b4a3..c233d3710 100644
--- a/module/plugins/Container.py
+++ b/module/plugins/Container.py
@@ -32,9 +32,7 @@ class Container(Crypter):
__author_name__ = ("mkaay")
__author_mail__ = ("mkaay@mkaay.de")
-
-
- #----------------------------------------------------------------------
+
def preprocessing(self, thread):
"""prepare"""
@@ -48,13 +46,12 @@ class Container(Crypter):
self.createPackages()
-
- #----------------------------------------------------------------------
+
def loadToDisk(self):
"""loads container to disk if its stored remotely and overwrite url,
or check existent on several places at disk"""
- if self.pyfile.url.startswith("http://"):
+ if self.pyfile.url.startswith("http"):
self.pyfile.name = re.findall("([^\/=]+)", self.pyfile.url)[-1]
content = self.load(self.pyfile.url)
self.pyfile.url = join(self.config["general"]["download_folder"], self.pyfile.name)
@@ -71,8 +68,6 @@ class Container(Crypter):
self.fail(_("File not exists."))
-
- #----------------------------------------------------------------------
def deleteTmp(self):
if self.pyfile.name.startswith("tmp_"):
remove(self.pyfile.url)