diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-08 16:34:26 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-08 16:34:26 +0200 |
commit | 1c4bd7a76450052b28dba609c04c5c4fcad0d014 (patch) | |
tree | 4e6b15c7b9447bb48e32f7d2a859b14a6e6055db /module/plugins/internal | |
parent | Update plugins XFileSharingPro based (diff) | |
download | pyload-1c4bd7a76450052b28dba609c04c5c4fcad0d014.tar.xz |
[XFileSharingPro] Restore
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/XFSPAccount.py | 2 | ||||
-rw-r--r-- | module/plugins/internal/XFSPHoster.py | 20 |
2 files changed, 6 insertions, 16 deletions
diff --git a/module/plugins/internal/XFSPAccount.py b/module/plugins/internal/XFSPAccount.py index 2cda54615..fdbd8829c 100644 --- a/module/plugins/internal/XFSPAccount.py +++ b/module/plugins/internal/XFSPAccount.py @@ -15,7 +15,7 @@ class XFSPAccount(Account): __type__ = "account" __version__ = "0.10" - __description__ = """XFileSharingPro base account plugin""" + __description__ = """XFileSharingPro account plugin""" __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py index 2376c1b84..30cb1536f 100644 --- a/module/plugins/internal/XFSPHoster.py +++ b/module/plugins/internal/XFSPHoster.py @@ -21,11 +21,11 @@ class XFSPHoster(SimpleHoster): """ __name__ = "XFSPHoster" __type__ = "hoster" - __version__ = "0.37" + __version__ = "0.01" - __pattern__ = r'^unmatchable$' + __pattern__ = None - __description__ = """XFileSharingPro base hoster plugin""" + __description__ = """XFileSharingPro hoster plugin""" __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] @@ -33,7 +33,7 @@ class XFSPHoster(SimpleHoster): HOSTER_NAME = None - FILE_URL_REPLACEMENTS = [(r'/embed-(\w{12}).*', r'/\1')] #: support embedded files + FILE_URL_REPLACEMENTS = [] COOKIES = [(HOSTER_NAME, "lang", "english")] @@ -59,14 +59,7 @@ class XFSPHoster(SimpleHoster): def setup(self): self.chunkLimit = 1 - - if self.__name__ == "XFSPHoster": - self.multiDL = True - self.__pattern__ = self.core.pluginManager.hosterPlugins[self.__name__]['pattern'] - self.HOSTER_NAME = re.match(self.__pattern__, self.pyfile.url).group(1).lower() - self.COOKIES = [(self.HOSTER_NAME, "lang", "english")] - else: - self.resumeDownload = self.multiDL = self.premium + self.resumeDownload = self.multiDL = self.premium def prepare(self): @@ -356,6 +349,3 @@ class XFSPHoster(SimpleHoster): return 4 return 0 - - -getInfo = create_getInfo(XFSPHoster) |