diff options
Diffstat (limited to 'module/plugins/hoster/BasePlugin.py')
-rw-r--r-- | module/plugins/hoster/BasePlugin.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py index f8d494e39..7070fafde 100644 --- a/module/plugins/hoster/BasePlugin.py +++ b/module/plugins/hoster/BasePlugin.py @@ -29,12 +29,11 @@ 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") + #TODO: remove debug + if pyfile.url.lower().startswith("debug"): + self.decryptCaptcha("http://download.pyload.org/pie.png", imgtype="png") + self.download("http://download.pyload.org/random100.bin") + return # # if pyfile.url == "79": # self.core.api.addPackage("test", [str(i) for i in range(80)], 1) @@ -96,10 +95,10 @@ class BasePlugin(Hoster): disp = m.groupdict() self.logDebug(disp) if not disp['enc']: disp['enc'] = 'utf-8' - name = remove_chars(disp['name'], "\"';").strip() + name = remove_chars(disp['name'], "\"';/").strip() name = unicode(unquote(name), disp['enc']) if not name: name = url pyfile.name = name self.logDebug("Filename: %s" % pyfile.name) - self.download(url, disposition=True)
\ No newline at end of file + self.download(url, disposition=True) |