summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-30 16:09:09 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-30 16:09:09 +0200
commit301ac21f2a4b6032d05fba362d167bf182404ee6 (patch)
tree71def1385a5c35d53994e95fac074b91d0eeafc5 /module/plugins/hoster
parentencoding fixes (diff)
downloadpyload-301ac21f2a4b6032d05fba362d167bf182404ee6.tar.xz
little fixes
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/PornhostCom.py2
-rw-r--r--module/plugins/hoster/PornhubCom.py2
-rw-r--r--module/plugins/hoster/RapidshareCom.py3
-rw-r--r--module/plugins/hoster/RedtubeCom.py2
-rw-r--r--module/plugins/hoster/ShareCx.py2
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py4
-rw-r--r--module/plugins/hoster/UploadedTo.py3
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()