summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-08 18:07:50 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-08 18:07:50 +0100
commitba2a4f6631849719bed531b65740b8feebe23ee9 (patch)
tree47e4ead7f07c9c10b43bed052c3300a56a1df941
parentfixed deps again (diff)
downloadpyload-ba2a4f6631849719bed531b65740b8feebe23ee9.tar.xz
fixes to adapt old plugins
-rw-r--r--pavement.py3
-rw-r--r--pyload/plugins/Plugin.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/pavement.py b/pavement.py
index ea6775b1a..10b431cc4 100644
--- a/pavement.py
+++ b/pavement.py
@@ -66,7 +66,7 @@ module_replace = [
('from module.common.json_layer import json_dumps', 'from pyload.utils import json_dumps'),
('from module.utils import parseFileSize', 'from pyload.utils import parseFileSize'),
('from module.utils import save_join, save_path',
- 'from pyload.utils.fs import save_join, save_filename as save_path'),
+ 'from pyload.utils.fs import save_join, safe_filename as save_path'),
('from module.utils import save_join, fs_encode', 'from pyload.utils.fs import save_join, fs_encode'),
('from module.utils import save_join', 'from pyload.utils.fs import save_join'),
('from module.utils import fs_encode', 'from pyload.utils.fs import fs_encode'),
@@ -77,6 +77,7 @@ module_replace = [
('self.account.getAccountInfo(self.user)', 'self.account.getAccountData()'),
('self.account.accounts[self.user]["password"]', 'self.account.password'),
("self.account.accounts[self.user]['password']", 'self.account.password'),
+ (".canUse()", '.isUsable(self)'),
('from module.', 'from pyload.') # This should be always the last one
]
diff --git a/pyload/plugins/Plugin.py b/pyload/plugins/Plugin.py
index 0abb2644f..56dc59638 100644
--- a/pyload/plugins/Plugin.py
+++ b/pyload/plugins/Plugin.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
print "Deprecated usage of plugins.Plugin -> use plugins.Base"
-from .Base import *
+from Base import *
from pyload.utils import chunks
Plugin = Base