diff options
Diffstat (limited to 'pyload/plugins/hoster')
| -rw-r--r-- | pyload/plugins/hoster/XFileSharingPro.py | 57 | ||||
| -rw-r--r-- | pyload/plugins/hoster/ZShareNet.py | 19 | 
2 files changed, 76 insertions, 0 deletions
diff --git a/pyload/plugins/hoster/XFileSharingPro.py b/pyload/plugins/hoster/XFileSharingPro.py new file mode 100644 index 000000000..f21ae34a4 --- /dev/null +++ b/pyload/plugins/hoster/XFileSharingPro.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- + +import re + +from pyload.plugins.internal.XFSHoster import XFSHoster, create_getInfo + + +class XFileSharingPro(XFSHoster): +    __name__    = "XFileSharingPro" +    __type__    = "hoster" +    __version__ = "0.43" + +    __pattern__ = r'^unmatchable$' + +    __description__ = """XFileSharingPro dummy hoster plugin for hook""" +    __license__     = "GPLv3" +    __authors__     = [("Walter Purcaro", "vuolter@gmail.com")] + + +    URL_REPLACEMENTS = [("/embed-", "/")] + + +    def _log(self, type, args): +        msg = " | ".join([str(a).strip() for a in args if a]) +        logger = getattr(self.log, type) +        logger("%s: %s: %s" % (self.__name__, self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) + + +    def init(self): +        super(XFileSharingPro, self).init() + +        self.__pattern__ = self.core.pluginManager.hosterPlugins[self.__name__]['pattern'] + +        self.HOSTER_DOMAIN = re.match(self.__pattern__, self.pyfile.url).group(1).lower() +        self.HOSTER_NAME   = "".join([str.capitalize() for str in self.HOSTER_DOMAIN.split('.')]) + +        account = self.core.accountManager.getAccountPlugin(self.HOSTER_NAME) + +        if account and account.canUse(): +            self.account = account +        elif self.account: +            self.account.HOSTER_DOMAIN = self.HOSTER_DOMAIN +        else: +            return + +        self.user, data = self.account.selectAccount() +        self.req = self.account.getAccountRequest(self.user) +        self.premium = self.account.isPremium(self.user) + + +    def setup(self): +        self.chunkLimit = 1 +        self.resumeDownload = self.premium +        self.multiDL = True + + +getInfo = create_getInfo(XFileSharingPro) diff --git a/pyload/plugins/hoster/ZShareNet.py b/pyload/plugins/hoster/ZShareNet.py new file mode 100644 index 000000000..663377102 --- /dev/null +++ b/pyload/plugins/hoster/ZShareNet.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +from pyload.plugins.internal.DeadHoster import DeadHoster, create_getInfo + + +class ZShareNet(DeadHoster): +    __name__    = "ZShareNet" +    __type__    = "hoster" +    __version__ = "0.21" + +    __pattern__ = r'https?://(?:ww[2w]\.)?zshares?\.net/.+' + +    __description__ = """ZShare.net hoster plugin""" +    __license__     = "GPLv3" +    __authors__     = [("espes", None), +                       ("Cptn Sandwich", None)] + + +getInfo = create_getInfo(ZShareNet)  | 
