From 0dd6508e613842c92db34896b48a8dce40fb1987 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 2 Jan 2016 15:27:51 +0100 Subject: [XFileSharing] Fix setup_base --- module/plugins/crypter/XFileSharingFolder.py | 4 ++-- module/plugins/hoster/XFileSharing.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/crypter/XFileSharingFolder.py b/module/plugins/crypter/XFileSharingFolder.py index 26ba286c0..1114a7e2d 100644 --- a/module/plugins/crypter/XFileSharingFolder.py +++ b/module/plugins/crypter/XFileSharingFolder.py @@ -36,6 +36,8 @@ class XFileSharingFolder(XFSCrypter): #@TODO: Recheck in 0.4.10 def setup_base(self): + super(XFileSharingFolder, self).setup_base() + if self.account: self.req = self.pyload.requestFactory.getRequest(self.PLUGIN_NAME, self.account.user) self.premium = self.account.info['data']['premium'] #@NOTE: Don't call get_info here to reduce overhead @@ -43,8 +45,6 @@ class XFileSharingFolder(XFSCrypter): self.req = self.pyload.requestFactory.getRequest(self.classname) self.premium = False - super(XFileSharingFolder, self).setup_base() - #@TODO: Recheck in 0.4.10 def load_account(self): diff --git a/module/plugins/hoster/XFileSharing.py b/module/plugins/hoster/XFileSharing.py index d225e73a2..f23d39299 100644 --- a/module/plugins/hoster/XFileSharing.py +++ b/module/plugins/hoster/XFileSharing.py @@ -46,6 +46,8 @@ class XFileSharing(XFSHoster): #@TODO: Recheck in 0.4.10 def setup_base(self): + super(XFileSharing, self).setup_base() + if self.account: self.req = self.pyload.requestFactory.getRequest(self.PLUGIN_NAME, self.account.user) self.premium = self.account.info['data']['premium'] #@NOTE: Don't call get_info here to reduce overhead @@ -53,8 +55,6 @@ class XFileSharing(XFSHoster): self.req = self.pyload.requestFactory.getRequest(self.classname) self.premium = False - super(XFileSharing, self).setup_base() - #@TODO: Recheck in 0.4.10 def load_account(self): -- cgit v1.2.3