From bdb8d48e0030474a616ec2e7e6d5f19132bb18e7 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 30 Oct 2014 17:12:50 +0100 Subject: [XFileSharingPro] Fix account init --- module/plugins/accounts/XFileSharingPro.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/accounts/XFileSharingPro.py b/module/plugins/accounts/XFileSharingPro.py index 16d1ccfda..c6baad4f8 100644 --- a/module/plugins/accounts/XFileSharingPro.py +++ b/module/plugins/accounts/XFileSharingPro.py @@ -1,14 +1,12 @@ # -*- coding: utf-8 -*- -import re - from module.plugins.internal.XFSPAccount import XFSPAccount class XFileSharingPro(XFSPAccount): __name__ = "XFileSharingPro" __type__ = "account" - __version__ = "0.03" + __version__ = "0.04" __description__ = """XFileSharingPro multi-purpose account plugin""" __license__ = "GPLv3" @@ -18,6 +16,11 @@ class XFileSharingPro(XFSPAccount): HOSTER_NAME = None + def init(self): + if self.HOSTER_NAME: + return super(XFileSharingPro, self).init() + + def loadAccountInfo(self, user, req): return super(XFileSharingPro if self.HOSTER_NAME else XFSPAccount, self).loadAccountInfo(user, req) -- cgit v1.2.3