summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NoPremiumPl.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/NoPremiumPl.py')
-rw-r--r--module/plugins/hoster/NoPremiumPl.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/NoPremiumPl.py b/module/plugins/hoster/NoPremiumPl.py
index f4f7ba56a..feedd7651 100644
--- a/module/plugins/hoster/NoPremiumPl.py
+++ b/module/plugins/hoster/NoPremiumPl.py
@@ -43,8 +43,9 @@ class NoPremiumPl(SimpleHoster):
if not self.account:
self.fail(_("Please enter your %s account or deactivate this plugin") % "NoPremium.pl")
else:
- self._usr = self.account.getAccountData(self.user).get('usr')
- self._pwd = self.account.getAccountData(self.user).get('pwd')
+ data = self.account.getAccountData(self.user)
+ self._usr = data['usr']
+ self._pwd = data['pwd']
def runFileQuery(self, url, mode=None):
query = self._api_query.copy()