summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/XFileSharingFolder.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-14 16:16:10 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 21:20:55 +0100
commitb8387e72fd3e679db00e03ebd3e3863bfbe8584a (patch)
tree71ae1fa66d8e0e24a4dd6d4edda118b8a673e8ef /module/plugins/crypter/XFileSharingFolder.py
parent[accounts] Strict comparison for numbers (diff)
downloadpyload-b8387e72fd3e679db00e03ebd3e3863bfbe8584a.tar.xz
[crypters] Remove create_getInfo + minor code cosmetics (w/ strict comparison for numbers)
Diffstat (limited to 'module/plugins/crypter/XFileSharingFolder.py')
-rw-r--r--module/plugins/crypter/XFileSharingFolder.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/crypter/XFileSharingFolder.py b/module/plugins/crypter/XFileSharingFolder.py
index 64db33d30..866db42e3 100644
--- a/module/plugins/crypter/XFileSharingFolder.py
+++ b/module/plugins/crypter/XFileSharingFolder.py
@@ -2,7 +2,7 @@
import re
-from module.plugins.internal.XFSCrypter import XFSCrypter, create_getInfo
+from module.plugins.internal.XFSCrypter import XFSCrypter
class XFileSharingFolder(XFSCrypter):
@@ -39,7 +39,7 @@ class XFileSharingFolder(XFSCrypter):
def setup_base(self):
if self.account:
self.req = self.pyload.requestFactory.getRequest(self.PLUGIN_NAME, self.account.user)
- self.premium = self.account.info['data']['premium'] #@NOTE: Avoid one unnecessary get_info call by `self.account.premium` here
+ self.premium = self.account.info['data']['premium'] #@NOTE: Don't call get_info here to reduce overhead
else:
self.req = self.pyload.requestFactory.getRequest(self.classname)
self.premium = False
@@ -53,6 +53,3 @@ class XFileSharingFolder(XFSCrypter):
self.__class__.__name__ = str(self.PLUGIN_NAME)
super(XFileSharingFolder, self).load_account()
self.__class__.__name__ = class_name
-
-
-getInfo = create_getInfo(XFileSharingFolder)