diff options
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() |