summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 03:25:42 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 03:25:42 +0100
commitea2d07843d369d8b8fd2aa02930bf549ce94a661 (patch)
treed74957918b4741e3a31c4ba007b23324e16bd53a /module/plugins/hoster
parent[SimpleHoster] Better checkDownload rules (diff)
downloadpyload-ea2d07843d369d8b8fd2aa02930bf549ce94a661.tar.xz
Spare fixes
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/FourSharedCom.py (renamed from module/plugins/hoster/_4SharedCom.py)6
-rw-r--r--module/plugins/hoster/HundredEightyUploadCom.py21
-rw-r--r--module/plugins/hoster/OneFichierCom.py (renamed from module/plugins/hoster/_1FichierCom.py)6
-rw-r--r--module/plugins/hoster/TwoSharedCom.py (renamed from module/plugins/hoster/_2SharedCom.py)6
-rw-r--r--module/plugins/hoster/XFileSharingPro.py2
5 files changed, 31 insertions, 10 deletions
diff --git a/module/plugins/hoster/_4SharedCom.py b/module/plugins/hoster/FourSharedCom.py
index a3504e405..78aeece44 100644
--- a/module/plugins/hoster/_4SharedCom.py
+++ b/module/plugins/hoster/FourSharedCom.py
@@ -5,8 +5,8 @@ import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-class _4SharedCom(SimpleHoster):
- __name__ = "4SharedCom"
+class FourSharedCom(SimpleHoster):
+ __name__ = "FourSharedCom"
__type__ = "hoster"
__version__ = "0.31"
@@ -59,4 +59,4 @@ class _4SharedCom(SimpleHoster):
self.wait(20)
-getInfo = create_getInfo(_4SharedCom)
+getInfo = create_getInfo(FourSharedCom)
diff --git a/module/plugins/hoster/HundredEightyUploadCom.py b/module/plugins/hoster/HundredEightyUploadCom.py
new file mode 100644
index 000000000..4fc96a2b1
--- /dev/null
+++ b/module/plugins/hoster/HundredEightyUploadCom.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+
+from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
+
+
+class HundredEightyUploadCom(XFSHoster):
+ __name__ = "HundredEightyUploadCom"
+ __type__ = "hoster"
+ __version__ = "0.04"
+
+ __pattern__ = r'http://(?:www\.)?180upload\.com/\w{12}'
+
+ __description__ = """180upload.com hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("stickell", "l.stickell@yahoo.it")]
+
+
+ HOSTER_DOMAIN = "180upload.com"
+
+
+getInfo = create_getInfo(HundredEightyUploadCom)
diff --git a/module/plugins/hoster/_1FichierCom.py b/module/plugins/hoster/OneFichierCom.py
index 528ad0f48..f9c0dbe85 100644
--- a/module/plugins/hoster/_1FichierCom.py
+++ b/module/plugins/hoster/OneFichierCom.py
@@ -5,8 +5,8 @@ import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-class _1FichierCom(SimpleHoster):
- __name__ = "1FichierCom"
+class OneFichierCom(SimpleHoster):
+ __name__ = "OneFichierCom"
__type__ = "hoster"
__version__ = "0.76"
@@ -57,4 +57,4 @@ class _1FichierCom(SimpleHoster):
return self.handleFree(pyfile)
-getInfo = create_getInfo(_1FichierCom)
+getInfo = create_getInfo(OneFichierCom)
diff --git a/module/plugins/hoster/_2SharedCom.py b/module/plugins/hoster/TwoSharedCom.py
index a974fac58..c6ca2ab29 100644
--- a/module/plugins/hoster/_2SharedCom.py
+++ b/module/plugins/hoster/TwoSharedCom.py
@@ -5,8 +5,8 @@ import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-class _2SharedCom(SimpleHoster):
- __name__ = "2SharedCom"
+class TwoSharedCom(SimpleHoster):
+ __name__ = "TwoSharedCom"
__type__ = "hoster"
__version__ = "0.13"
@@ -29,4 +29,4 @@ class _2SharedCom(SimpleHoster):
self.multiDL = True
-getInfo = create_getInfo(_2SharedCom)
+getInfo = create_getInfo(TwoSharedCom)
diff --git a/module/plugins/hoster/XFileSharingPro.py b/module/plugins/hoster/XFileSharingPro.py
index 8d9ec9871..1794ae513 100644
--- a/module/plugins/hoster/XFileSharingPro.py
+++ b/module/plugins/hoster/XFileSharingPro.py
@@ -35,7 +35,7 @@ class XFileSharingPro(XFSHoster):
self.HOSTER_NAME = "".join([part.capitalize() for part in re.split(r'(\.|\d+)', self.HOSTER_DOMAIN) if part != '.'])
if self.HOSTER_NAME[0].isdigit():
- self.HOSTER_NAME = '_' + self.HOSTER_NAME
+ self.HOSTER_NAME = 'X' + self.HOSTER_NAME
account = self.core.accountManager.getAccountPlugin(self.HOSTER_NAME)