summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/LetitbitNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/LetitbitNet.py')
-rw-r--r--module/plugins/hoster/LetitbitNet.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/LetitbitNet.py b/module/plugins/hoster/LetitbitNet.py
index e5fc055c0..88e708bf5 100644
--- a/module/plugins/hoster/LetitbitNet.py
+++ b/module/plugins/hoster/LetitbitNet.py
@@ -24,7 +24,7 @@ from module.common.json_layer import json_loads
class LetitbitNet(SimpleHoster):
__name__ = "LetitbitNet"
__type__ = "hoster"
- __pattern__ = r"http://(?:\w*\.)*letitbit.net/download/.*"
+ __pattern__ = r"http://(?:\w*\.)*(letitbit|shareflare).net/download/.*"
__version__ = "0.19"
__description__ = """letitbit.net"""
__author_name__ = ("zoidberg")
@@ -35,8 +35,9 @@ class LetitbitNet(SimpleHoster):
FILE_INFO_PATTERN = r'<h1[^>]*>File:.*?<span>(?P<N>[^<]+)</span>.*?\[<span>(?P<S>[^<]+)</span>]</h1>'
FILE_OFFLINE_PATTERN = r'>File not found<'
-
+
DOMAIN = "http://letitbit.net"
+ FILE_URL_REPLACEMENTS = [(r"(?<=http://)([^/]+)", "letitbit.net")]
def setup(self):
self.resumeDownload = self.multiDL = True
@@ -106,4 +107,4 @@ class LetitbitNet(SimpleHoster):
else:
self.fail("Download did not finish correctly")
-getInfo = create_getInfo(LetitbitNet)
+getInfo = create_getInfo(LetitbitNet) \ No newline at end of file