summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-08 16:34:26 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-08 16:34:26 +0200
commit1c4bd7a76450052b28dba609c04c5c4fcad0d014 (patch)
tree4e6b15c7b9447bb48e32f7d2a859b14a6e6055db /module/plugins
parentUpdate plugins XFileSharingPro based (diff)
downloadpyload-1c4bd7a76450052b28dba609c04c5c4fcad0d014.tar.xz
[XFileSharingPro] Restore
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/XFileSharingPro.py30
-rw-r--r--module/plugins/internal/XFSPAccount.py2
-rw-r--r--module/plugins/internal/XFSPHoster.py20
3 files changed, 36 insertions, 16 deletions
diff --git a/module/plugins/hoster/XFileSharingPro.py b/module/plugins/hoster/XFileSharingPro.py
new file mode 100644
index 000000000..9c46e8120
--- /dev/null
+++ b/module/plugins/hoster/XFileSharingPro.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+
+import re
+
+from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo
+
+
+class XFileSharingPro(XFSPHoster):
+ __name__ = "XFileSharingPro"
+ __type__ = "hoster"
+ __version__ = "0.38"
+
+ __pattern__ = r'^unmatchable$'
+
+ __description__ = """XFileSharingPro dummy hoster plugin for hook"""
+ __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
+
+
+ FILE_URL_REPLACEMENTS = [(r'/embed-(\w{12}).*', r'/\1')] #: support embedded files
+
+
+ def setup(self):
+ self.chunkLimit = 1
+ 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()
+
+
+getInfo = create_getInfo(XFileSharingPro)
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)