summaryrefslogtreecommitdiffstats
path: root/pavement.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-11 11:26:35 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-11 11:26:35 +0200
commitce65e4191a767704f248a071891699b65bd1d2a1 (patch)
tree092410d1729aa43610de0364a600c0b4a0ef4866 /pavement.py
parentadditional replace rule (diff)
downloadpyload-ce65e4191a767704f248a071891699b65bd1d2a1.tar.xz
fixed replace rule
Diffstat (limited to 'pavement.py')
-rw-r--r--pavement.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pavement.py b/pavement.py
index 2787a613f..1c3cfc07a 100644
--- a/pavement.py
+++ b/pavement.py
@@ -75,6 +75,7 @@ module_replace = [
('from module.lib import feedparser', 'import feedparser'),
('self.account.getAccountInfo(self.user, ', 'self.account.getAccountInfo('),
('self.account.getAccountInfo(self.user)', 'self.account.getAccountInfo()'),
+ ('self.account.getAccountInfo()["premium"]', 'self.account.isPremium()'),
('self.account.accounts[self.user]["password"]', 'self.account.password'),
("self.account.accounts[self.user]['password']", 'self.account.password'),
('from module.', 'from pyload.') # This should be always the last one
@@ -289,7 +290,6 @@ def replace_module_imports():
elif '/accounts/' in path:
content = content.replace('self.accounts[user]["password"]', 'self.password')
content = content.replace("self.accounts[user]['password']", 'self.password')
- content = content.replace('.getAccountInfo()["premium"]', '.isPremium()')
f = open(path, 'w')
f.write(content)
f.close()