summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 07:26:01 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 07:26:01 +0100
commiteb61d1bb0a30fd32f99b93f847346c610fbc91d2 (patch)
treef889dd1b19c0496f3f88c478445165abd98f9c7a /pyload/plugins/Plugin.py
parent[HTTPRequest] Raise Fail if write response fails (diff)
downloadpyload-eb61d1bb0a30fd32f99b93f847346c610fbc91d2.tar.xz
Update plugins after merging
Diffstat (limited to 'pyload/plugins/Plugin.py')
-rw-r--r--pyload/plugins/Plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugins/Plugin.py b/pyload/plugins/Plugin.py
index c59d64911..a4b4cf74e 100644
--- a/pyload/plugins/Plugin.py
+++ b/pyload/plugins/Plugin.py
@@ -16,7 +16,7 @@ from itertools import islice
from traceback import print_exc
from urlparse import urlparse
-from module.utils import fs_decode, fs_encode, html_unescape, save_join, save_path
+from pyload.utils import fs_decode, fs_encode, html_unescape, safe_join
def chunks(iterable, size):
it = iter(iterable)
@@ -100,7 +100,7 @@ class Base(object):
:param value:
:return:
"""
- self.core.config.setPlugin(self.__name__, option, value)
+ self.core.config.setPlugin(self.__name__, option, value)
#: Deprecated method
@@ -154,7 +154,7 @@ class Plugin(Base):
__type__ = "hoster"
__version__ = "0.07"
- __pattern__ = None
+ __pattern__ = r'^unmatchable$'
__config__ = [] #: [("name", "type", "desc", "default")]
__description__ = """Base plugin"""
@@ -541,7 +541,7 @@ class Plugin(Base):
from inspect import currentframe
frame = currentframe()
- framefile = save_join("tmp", self.__name__, "%s_line%s.dump.html" % (frame.f_back.f_code.co_name, frame.f_back.f_lineno))
+ framefile = safe_join("tmp", self.__name__, "%s_line%s.dump.html" % (frame.f_back.f_code.co_name, frame.f_back.f_lineno))
try:
if not exists(join("tmp", self.__name__)):
makedirs(join("tmp", self.__name__))