diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-30 16:09:09 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-30 16:09:09 +0200 |
commit | 301ac21f2a4b6032d05fba362d167bf182404ee6 (patch) | |
tree | 71def1385a5c35d53994e95fac074b91d0eeafc5 /module/plugins/hoster | |
parent | encoding fixes (diff) | |
download | pyload-301ac21f2a4b6032d05fba362d167bf182404ee6.tar.xz |
little fixes
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/PornhostCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/PornhubCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/RapidshareCom.py | 3 | ||||
-rw-r--r-- | module/plugins/hoster/RedtubeCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/ShareCx.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 4 | ||||
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 3 |
7 files changed, 6 insertions, 12 deletions
diff --git a/module/plugins/hoster/PornhostCom.py b/module/plugins/hoster/PornhostCom.py index 7a969f7f7..a4124c4a4 100644 --- a/module/plugins/hoster/PornhostCom.py +++ b/module/plugins/hoster/PornhostCom.py @@ -16,7 +16,7 @@ class PornhostCom(Hoster): def process(self, pyfile):
self.download_html()
if not self.file_exists():
- offline()
+ self.offline()
pyfile.name = self.get_file_name()
self.download(self.get_file_url())
diff --git a/module/plugins/hoster/PornhubCom.py b/module/plugins/hoster/PornhubCom.py index abc489e30..2df7ba452 100644 --- a/module/plugins/hoster/PornhubCom.py +++ b/module/plugins/hoster/PornhubCom.py @@ -16,7 +16,7 @@ class PornhubCom(Hoster): def process(self, pyfile):
self.download_html()
if not self.file_exists():
- offline()
+ self.offline()
pyfile.name = self.get_file_name()
self.download(self.get_file_url())
diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index 844d716ed..3dfc6d465 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -7,7 +7,6 @@ from time import time from module.network.Request import getURL from module.plugins.Hoster import Hoster -import hashlib def getInfo(urls): @@ -73,7 +72,7 @@ class RapidshareCom(Hoster): self.log.debug(_("%(name)s: Use Premium Account (%(left)sGB left)") % { "name" : self.__name__, "left": info["trafficleft"]/1000/1000 }) if self.api_data["size"] / 1024 > info["trafficleft"]: self.log.info(_("%s: Not enough traffic left" % self.__name__)) - self.resetAcount() + #self.resetAcount() #@TODO implement else: self.url = self.api_data["mirror"] return True diff --git a/module/plugins/hoster/RedtubeCom.py b/module/plugins/hoster/RedtubeCom.py index 748ab04f0..9ffafd905 100644 --- a/module/plugins/hoster/RedtubeCom.py +++ b/module/plugins/hoster/RedtubeCom.py @@ -17,7 +17,7 @@ class RedtubeCom(Hoster): def process(self, pyfile):
self.download_html()
if not self.file_exists():
- offline()
+ self.offline()
pyfile.name = self.get_file_name()
self.download(self.get_file_url())
diff --git a/module/plugins/hoster/ShareCx.py b/module/plugins/hoster/ShareCx.py index 63a51eab7..adebb1c77 100644 --- a/module/plugins/hoster/ShareCx.py +++ b/module/plugins/hoster/ShareCx.py @@ -50,7 +50,7 @@ class ShareCx(Hoster): self.pyfile = pyfile
self.download_html()
if not self.file_exists():
- offline()
+ self.offline()
pyfile.name = self.get_file_name()
self.doDownload()
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index c10bf357c..5b1d12f66 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -1,11 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import os -import os.path import re -import tempfile -from time import time from base64 import b64decode import hashlib import random diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index b0c3486e3..f04e97531 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -5,7 +5,6 @@ from time import time from module.plugins.Hoster import Hoster from module.network.Request import getURL from module.plugins.Plugin import chunks -import hashlib def getInfo(urls): pattern = re.compile(UploadedTo.__pattern__) @@ -70,7 +69,7 @@ class UploadedTo(Hoster): self.log.debug(_("%(name)s: Use Premium Account (%(left)sGB left)") % {"name" :self.__name__, "left" : info["trafficleft"]/1024/1024}) if self.api_data["size"]/1024 > info["trafficleft"]: self.log.info(_("%s: Not enough traffic left" % self.__name__)) - self.resetAcount() + #self.resetAcount() #@TODO implement else: self.url = self.get_file_url() self.pyfile.name = self.get_file_name() |