diff options
author | 2013-08-11 11:26:35 +0200 | |
---|---|---|
committer | 2013-08-11 11:26:35 +0200 | |
commit | ce65e4191a767704f248a071891699b65bd1d2a1 (patch) | |
tree | 092410d1729aa43610de0364a600c0b4a0ef4866 /pavement.py | |
parent | additional replace rule (diff) | |
download | pyload-ce65e4191a767704f248a071891699b65bd1d2a1.tar.xz |
fixed replace rule
Diffstat (limited to 'pavement.py')
-rw-r--r-- | pavement.py | 2 |
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() |