summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/BasePlugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/BasePlugin.py')
-rw-r--r--pyload/plugins/hoster/BasePlugin.py22
1 files changed, 6 insertions, 16 deletions
diff --git a/pyload/plugins/hoster/BasePlugin.py b/pyload/plugins/hoster/BasePlugin.py
index 1973c45be..761ee720c 100644
--- a/pyload/plugins/hoster/BasePlugin.py
+++ b/pyload/plugins/hoster/BasePlugin.py
@@ -11,14 +11,15 @@ from pyload.utils import html_unescape, remove_chars
class BasePlugin(Hoster):
- __name__ = "BasePlugin"
- __type__ = "hoster"
+ __name__ = "BasePlugin"
+ __type__ = "hoster"
__version__ = "0.20"
__pattern__ = r'^unmatchable$'
__description__ = """Base Plugin when any other didnt fit"""
- __authors__ = [("RaNaN", "RaNaN@pyload.org")]
+ __license__ = "GPLv3"
+ __authors__ = [("RaNaN", "RaNaN@pyload.org")]
def setup(self):
@@ -34,17 +35,6 @@ class BasePlugin(Hoster):
self.multiDL = False
return
- # self.__name__ = "NetloadIn"
- # pyfile.name = "test"
- # self.html = self.load("http://localhost:9000/short")
- # self.download("http://localhost:9000/short")
- # self.api = self.load("http://localhost:9000/short")
- # self.decryptCaptcha("http://localhost:9000/captcha")
- #
- # if pyfile.url == "79":
- # self.core.api.addPackage("test", [str(i) for i in xrange(80)], 1)
- #
- # return
if pyfile.url.startswith("http"):
try:
@@ -73,13 +63,13 @@ class BasePlugin(Hoster):
raise
else:
- self.fail("No Plugin matched and not a downloadable url.")
+ self.fail(_("No Plugin matched and not a downloadable url"))
def downloadFile(self, pyfile):
url = pyfile.url
- for _ in xrange(5):
+ for _i in xrange(5):
header = self.load(url, just_header=True)
# self.load does not raise a BadHeader on 404 responses, do it here