summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RemixshareCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/RemixshareCom.py')
-rw-r--r--module/plugins/hoster/RemixshareCom.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/module/plugins/hoster/RemixshareCom.py b/module/plugins/hoster/RemixshareCom.py
index 803256d86..b62db8af3 100644
--- a/module/plugins/hoster/RemixshareCom.py
+++ b/module/plugins/hoster/RemixshareCom.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# Test links:
-# http://remixshare.com/download/p946u
+# http://remixshare.com/download/z8uli
#
# Note:
# The remixshare.com website is very very slow, so
@@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class RemixshareCom(SimpleHoster):
__name__ = "RemixshareCom"
__type__ = "hoster"
- __version__ = "0.03"
+ __version__ = "0.04"
__pattern__ = r'https?://remixshare\.com/(download|dl)/\w+'
__config__ = [("use_premium", "bool", "Use premium account if available", True)]
@@ -24,15 +24,16 @@ class RemixshareCom(SimpleHoster):
__description__ = """Remixshare.com hoster plugin"""
__license__ = "GPLv3"
__authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"),
- ("Walter Purcaro", "vuolter@gmail.com")]
+ ("Walter Purcaro", "vuolter@gmail.com"),
+ ("sraedler", "simon.raedler@yahoo.de")]
INFO_PATTERN = r'title=\'.+?\'>(?P<N>.+?)</span><span class=\'light2\'>&nbsp;\((?P<S>\d+)&nbsp;(?P<U>[\w^_]+)\)<'
OFFLINE_PATTERN = r'<h1>Ooops!<'
- LINK_FREE_PATTERN = r'(http://remixshare\.com/downloadfinal/.+?)"'
+ LINK_FREE_PATTERN = r'(http:\/\/remixshare\.com\/startloading(\w|\/)+)'
TOKEN_PATTERN = r'var acc = (\d+)'
- WAIT_PATTERN = r'var XYZ = r"(\d+)"'
+ WAIT_PATTERN = r'var XYZ = "(\d+)"'
def setup(self):
@@ -49,13 +50,15 @@ class RemixshareCom(SimpleHoster):
if not c:
self.error(_("Cannot parse file token"))
- self.link = b.group(1) + c.group(1)
+ self.link = b.group(1) + "/zzz/" + c.group(1)
+ self.logDebug(self.link)
#Check if we have to wait
seconds = re.search(self.WAIT_PATTERN, self.html)
if seconds:
- self.logDebug("Wait " + seconds.group(1))
+ self.logDebug("Wait " + seconds.group(1) + " Seconds")
self.wait(seconds.group(1))
+ self.download(self.link)
getInfo = create_getInfo(RemixshareCom)