summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/RemixshareCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/RemixshareCom.py')
-rw-r--r--pyload/plugins/hoster/RemixshareCom.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/pyload/plugins/hoster/RemixshareCom.py b/pyload/plugins/hoster/RemixshareCom.py
index 41bba2569..fee898654 100644
--- a/pyload/plugins/hoster/RemixshareCom.py
+++ b/pyload/plugins/hoster/RemixshareCom.py
@@ -14,18 +14,19 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class RemixshareCom(SimpleHoster):
- __name__ = "RemixshareCom"
- __type__ = "hoster"
- __version__ = "0.01"
+ __name__ = "RemixshareCom"
+ __type__ = "hoster"
+ __version__ = "0.02"
__pattern__ = r'https?://remixshare\.com/(download|dl)/\w+'
__description__ = """Remixshare.com hoster plugin"""
- __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"),
- ("Walter Purcaro", "vuolter@gmail.com")]
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"),
+ ("Walter Purcaro", "vuolter@gmail.com")]
- FILE_INFO_PATTERN = r'title=\'.+?\'>(?P<N>.+?)</span><span class=\'light2\'>&nbsp;\((?P<S>\d+)&nbsp;(?P<U>\w+)\)<'
+ INFO_PATTERN = r'title=\'.+?\'>(?P<N>.+?)</span><span class=\'light2\'>&nbsp;\((?P<S>\d+)&nbsp;(?P<U>[\w^_]+)\)<'
OFFLINE_PATTERN = r'<h1>Ooops!<'
LINK_PATTERN = r'(http://remixshare\.com/downloadfinal/.+?)"'
@@ -37,13 +38,14 @@ class RemixshareCom(SimpleHoster):
self.multiDL = True
self.chunkLimit = 1
+
def handleFree(self):
b = re.search(self.LINK_PATTERN, self.html)
if not b:
- self.parseError("Cannot parse download url")
+ self.error(_("Cannot parse download url"))
c = re.search(self.TOKEN_PATTERN, self.html)
if not c:
- self.parseError("Cannot parse file token")
+ self.error(_("Cannot parse file token"))
dl_url = b.group(1) + c.group(1)
#Check if we have to wait
@@ -53,7 +55,6 @@ class RemixshareCom(SimpleHoster):
self.wait(seconds.group(1))
# Finally start downloading...
- self.logDebug("Download URL = r" + dl_url)
self.download(dl_url, disposition=True)