summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
commit2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494 (patch)
treec33c610c953a7833adfe8e357417e73b1d5231d4
parentparseError -> error now calls Fail instead Exception (diff)
downloadpyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz
Update hosters to self.error
-rw-r--r--module/plugins/hoster/BayfilesCom.py8
-rw-r--r--module/plugins/hoster/BezvadataCz.py10
-rw-r--r--module/plugins/hoster/BitshareCom.py4
-rw-r--r--module/plugins/hoster/CatShareNet.py4
-rw-r--r--module/plugins/hoster/CrockoCom.py6
-rw-r--r--module/plugins/hoster/CzshareCom.py8
-rw-r--r--module/plugins/hoster/DataHu.py4
-rw-r--r--module/plugins/hoster/DataportCz.py8
-rw-r--r--module/plugins/hoster/DateiTo.py6
-rw-r--r--module/plugins/hoster/DepositfilesCom.py8
-rw-r--r--module/plugins/hoster/DevhostSt.py6
-rw-r--r--module/plugins/hoster/DropboxCom.py4
-rw-r--r--module/plugins/hoster/EdiskCz.py4
-rw-r--r--module/plugins/hoster/EuroshareEu.py4
-rw-r--r--module/plugins/hoster/ExtabitCom.py8
-rw-r--r--module/plugins/hoster/FastshareCz.py6
-rw-r--r--module/plugins/hoster/File4safeCom.py4
-rw-r--r--module/plugins/hoster/FilecloudIo.py8
-rw-r--r--module/plugins/hoster/FilefactoryCom.py10
-rw-r--r--module/plugins/hoster/FilepostCom.py10
-rw-r--r--module/plugins/hoster/FilepupNet.py6
-rw-r--r--module/plugins/hoster/FilerNet.py8
-rw-r--r--module/plugins/hoster/FourSharedCom.py4
-rw-r--r--module/plugins/hoster/FshareVn.py6
-rw-r--r--module/plugins/hoster/HellshareCz.py4
-rw-r--r--module/plugins/hoster/IfileIt.py4
-rw-r--r--module/plugins/hoster/Keep2shareCC.py6
-rw-r--r--module/plugins/hoster/KingfilesNet.py10
-rw-r--r--module/plugins/hoster/LetitbitNet.py14
-rw-r--r--module/plugins/hoster/LoadTo.py4
-rw-r--r--module/plugins/hoster/LuckyShareNet.py8
-rw-r--r--module/plugins/hoster/MediafireCom.py6
-rw-r--r--module/plugins/hoster/MegasharesCom.py4
-rw-r--r--module/plugins/hoster/NarodRu.py6
-rw-r--r--module/plugins/hoster/NowVideoAt.py4
-rw-r--r--module/plugins/hoster/OneFichierCom.py6
-rw-r--r--module/plugins/hoster/PromptfileCom.py6
-rw-r--r--module/plugins/hoster/RapidgatorNet.py6
-rw-r--r--module/plugins/hoster/RemixshareCom.py6
-rw-r--r--module/plugins/hoster/RgHostNet.py4
-rw-r--r--module/plugins/hoster/RyushareCom.py4
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py4
-rw-r--r--module/plugins/hoster/SpeedyshareCom.py6
-rw-r--r--module/plugins/hoster/StreamcloudEu.py6
-rw-r--r--module/plugins/hoster/TurbobitNet.py10
-rw-r--r--module/plugins/hoster/TwoSharedCom.py4
-rw-r--r--module/plugins/hoster/UlozTo.py10
-rw-r--r--module/plugins/hoster/UloziskoSk.py8
-rw-r--r--module/plugins/hoster/UploadheroCom.py4
-rw-r--r--module/plugins/hoster/UploadingCom.py8
-rw-r--r--module/plugins/hoster/UpstoreNet.py10
-rw-r--r--module/plugins/hoster/WebshareCz.py4
-rw-r--r--module/plugins/hoster/WrzucTo.py6
-rw-r--r--module/plugins/hoster/YibaishiwuCom.py4
-rw-r--r--module/plugins/hoster/ZippyshareCom.py4
55 files changed, 172 insertions, 172 deletions
diff --git a/module/plugins/hoster/BayfilesCom.py b/module/plugins/hoster/BayfilesCom.py
index d38987227..b78af6286 100644
--- a/module/plugins/hoster/BayfilesCom.py
+++ b/module/plugins/hoster/BayfilesCom.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class BayfilesCom(SimpleHoster):
__name__ = "BayfilesCom"
__type__ = "hoster"
- __version__ = "0.07"
+ __version__ = "0.08"
__pattern__ = r'https?://(?:www\.)?bayfiles\.(com|net)/file/(?P<ID>\w+/\w+/[^/]+)'
@@ -39,7 +39,7 @@ class BayfilesCom(SimpleHoster):
# Get download token
m = re.search(self.VARS_PATTERN, self.html)
if m is None:
- self.parseError('VARS')
+ self.error('VARS')
vfid, delay = m.groups()
response = json_loads(self.load('http://bayfiles.com/ajax_download', get={
@@ -60,13 +60,13 @@ class BayfilesCom(SimpleHoster):
# Get final link and download
m = re.search(self.FREE_LINK_PATTERN, self.html)
if m is None:
- self.parseError("Free link")
+ self.error("Free link")
self.startDownload(m.group(1))
def handlePremium(self):
m = re.search(self.PREMIUM_LINK_PATTERN, self.html)
if m is None:
- self.parseError("Premium link")
+ self.error("Premium link")
self.startDownload(m.group(1))
def startDownload(self, url):
diff --git a/module/plugins/hoster/BezvadataCz.py b/module/plugins/hoster/BezvadataCz.py
index 9c1ef3693..dcf9bf293 100644
--- a/module/plugins/hoster/BezvadataCz.py
+++ b/module/plugins/hoster/BezvadataCz.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class BezvadataCz(SimpleHoster):
__name__ = "BezvadataCz"
__type__ = "hoster"
- __version__ = "0.24"
+ __version__ = "0.25"
__pattern__ = r'http://(?:www\.)?bezvadata\.cz/stahnout/.*'
@@ -29,7 +29,7 @@ class BezvadataCz(SimpleHoster):
#download button
m = re.search(r'<a class="stahnoutSoubor".*?href="(.*?)"', self.html)
if m is None:
- self.parseError("page1 URL")
+ self.error("page1 URL")
url = "http://bezvadata.cz%s" % m.group(1)
#captcha form
@@ -38,11 +38,11 @@ class BezvadataCz(SimpleHoster):
for _ in xrange(5):
action, inputs = self.parseHtmlForm('frm-stahnoutFreeForm')
if not inputs:
- self.parseError("FreeForm")
+ self.error("FreeForm")
m = re.search(r'<img src="data:image/png;base64,(.*?)"', self.html)
if m is None:
- self.parseError("captcha img")
+ self.error("captcha img")
#captcha image is contained in html page as base64encoded data but decryptCaptcha() expects image url
self.load, proper_load = self.loadcaptcha, self.load
@@ -64,7 +64,7 @@ class BezvadataCz(SimpleHoster):
self.checkErrors()
m = re.search(r'<a class="stahnoutSoubor2" href="(.*?)">', self.html)
if m is None:
- self.parseError("page2 URL")
+ self.error("page2 URL")
url = "http://bezvadata.cz%s" % m.group(1)
self.logDebug("DL URL %s" % url)
diff --git a/module/plugins/hoster/BitshareCom.py b/module/plugins/hoster/BitshareCom.py
index 8fd8892be..9d2a23625 100644
--- a/module/plugins/hoster/BitshareCom.py
+++ b/module/plugins/hoster/BitshareCom.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class BitshareCom(SimpleHoster):
__name__ = "BitshareCom"
__type__ = "hoster"
- __version__ = "0.50"
+ __version__ = "0.51"
__pattern__ = r'http://(?:www\.)?bitshare\.com/(files/(?P<id1>\w+)(/(?P<name>.*?)\.html)?|\?f=(?P<id2>\w+))'
@@ -115,7 +115,7 @@ class BitshareCom(SimpleHoster):
recaptcha = ReCaptcha(self)
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha captcha key not found")
+ self.error("ReCaptcha captcha key not found")
# Try up to 3 times
for i in xrange(3):
diff --git a/module/plugins/hoster/CatShareNet.py b/module/plugins/hoster/CatShareNet.py
index 592792952..9a7824659 100644
--- a/module/plugins/hoster/CatShareNet.py
+++ b/module/plugins/hoster/CatShareNet.py
@@ -9,7 +9,7 @@ from module.plugins.internal.CaptchaService import ReCaptcha
class CatShareNet(SimpleHoster):
__name__ = "CatShareNet"
__type__ = "hoster"
- __version__ = "0.07"
+ __version__ = "0.08"
__pattern__ = r'http://(?:www\.)?catshare\.net/\w{16}'
@@ -52,7 +52,7 @@ class CatShareNet(SimpleHoster):
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
challenge, code = recaptcha.challenge(captcha_key)
self.html = self.load(self.pyfile.url,
diff --git a/module/plugins/hoster/CrockoCom.py b/module/plugins/hoster/CrockoCom.py
index b62e88278..f685d7452 100644
--- a/module/plugins/hoster/CrockoCom.py
+++ b/module/plugins/hoster/CrockoCom.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class CrockoCom(SimpleHoster):
__name__ = "CrockoCom"
__type__ = "hoster"
- __version__ = "0.16"
+ __version__ = "0.17"
__pattern__ = r'http://(?:www\.)?(crocko|easy-share)\.com/\w+'
@@ -46,11 +46,11 @@ class CrockoCom(SimpleHoster):
recaptcha = ReCaptcha(self)
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha captcha key not found")
+ self.error("ReCaptcha captcha key not found")
m = re.search(self.FORM_PATTERN, self.html, re.DOTALL)
if m is None:
- self.parseError('ACTION')
+ self.error('ACTION')
action, form = m.groups()
inputs = dict(re.findall(self.FORM_INPUT_PATTERN, form))
diff --git a/module/plugins/hoster/CzshareCom.py b/module/plugins/hoster/CzshareCom.py
index 0ddca1473..9f2f23d9e 100644
--- a/module/plugins/hoster/CzshareCom.py
+++ b/module/plugins/hoster/CzshareCom.py
@@ -12,7 +12,7 @@ from module.utils import parseFileSize
class CzshareCom(SimpleHoster):
__name__ = "CzshareCom"
__type__ = "hoster"
- __version__ = "0.94"
+ __version__ = "0.95"
__pattern__ = r'http://(?:www\.)?(czshare|sdilej)\.(com|cz)/(\d+/|download\.php\?).*'
@@ -79,7 +79,7 @@ class CzshareCom(SimpleHoster):
# get free url
m = re.search(self.FREE_URL_PATTERN, self.html)
if m is None:
- self.parseError('Free URL')
+ self.error('Free URL')
parsed_url = "http://sdilej.cz" + m.group(1)
self.logDebug("PARSED_URL:" + parsed_url)
@@ -94,7 +94,7 @@ class CzshareCom(SimpleHoster):
self.pyfile.size = int(inputs['size'])
except Exception, e:
self.logError(e)
- self.parseError('Form')
+ self.error('Form')
# get and decrypt captcha
captcha_url = 'http://sdilej.cz/captcha.php'
@@ -118,7 +118,7 @@ class CzshareCom(SimpleHoster):
self.logDebug("WAIT URL", self.req.lastEffectiveURL)
m = re.search("free_wait.php\?server=(.*?)&(.*)", self.req.lastEffectiveURL)
if m is None:
- self.parseError('Download URL')
+ self.error('Download URL')
url = "http://%s/download.php?%s" % (m.group(1), m.group(2))
diff --git a/module/plugins/hoster/DataHu.py b/module/plugins/hoster/DataHu.py
index 6d286d872..d3a13c54b 100644
--- a/module/plugins/hoster/DataHu.py
+++ b/module/plugins/hoster/DataHu.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DataHu(SimpleHoster):
__name__ = "DataHu"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?data\.hu/get/\w+'
@@ -35,7 +35,7 @@ class DataHu(SimpleHoster):
url = m.group(1)
self.logDebug("Direct link: " + url)
else:
- self.parseError('Unable to get direct link')
+ self.error('Unable to get direct link')
self.download(url, disposition=True)
diff --git a/module/plugins/hoster/DataportCz.py b/module/plugins/hoster/DataportCz.py
index fe58d7fb7..c79a21b8e 100644
--- a/module/plugins/hoster/DataportCz.py
+++ b/module/plugins/hoster/DataportCz.py
@@ -6,7 +6,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DataportCz(SimpleHoster):
__name__ = "DataportCz"
__type__ = "hoster"
- __version__ = "0.37"
+ __version__ = "0.38"
__pattern__ = r'http://(?:www\.)?dataport\.cz/file/(.*)'
@@ -32,19 +32,19 @@ class DataportCz(SimpleHoster):
action, inputs = self.parseHtmlForm('free_download_form')
self.logDebug(action, inputs)
if not action or not inputs:
- self.parseError('free_download_form')
+ self.error('free_download_form')
if "captchaId" in inputs and inputs['captchaId'] in captchas:
inputs['captchaCode'] = captchas[inputs['captchaId']]
else:
- self.parseError('captcha')
+ self.error('captcha')
self.html = self.download("http://www.dataport.cz%s" % action, post=inputs)
check = self.checkDownload({"captcha": 'alert("\u0160patn\u011b opsan\u00fd k\u00f3d z obr\u00e1zu");',
"slot": 'alert("Je n\u00e1m l\u00edto, ale moment\u00e1ln\u011b nejsou'})
if check == "captcha":
- self.parseError('invalid captcha')
+ self.error('invalid captcha')
elif check == "slot":
self.logDebug("No free slots - wait 60s and retry")
self.wait(60, False)
diff --git a/module/plugins/hoster/DateiTo.py b/module/plugins/hoster/DateiTo.py
index 400fa416f..06a485eae 100644
--- a/module/plugins/hoster/DateiTo.py
+++ b/module/plugins/hoster/DateiTo.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DateiTo(SimpleHoster):
__name__ = "DateiTo"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'http://(?:www\.)?datei\.to/datei/(?P<ID>\w+)\.html'
@@ -47,14 +47,14 @@ class DateiTo(SimpleHoster):
m = re.search(self.DATA_PATTERN, self.html)
if m is None:
- self.parseError('data')
+ self.error('data')
url = 'http://datei.to/' + m.group(1)
data = dict(x.split('=') for x in m.group(2).split('&'))
if url.endswith('recaptcha.php'):
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
data['recaptcha_challenge_field'], data['recaptcha_response_field'] = recaptcha.challenge(captcha_key)
diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py
index 5ec690a97..d49b3fc94 100644
--- a/module/plugins/hoster/DepositfilesCom.py
+++ b/module/plugins/hoster/DepositfilesCom.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DepositfilesCom(SimpleHoster):
__name__ = "DepositfilesCom"
__type__ = "hoster"
- __version__ = "0.49"
+ __version__ = "0.50"
__pattern__ = r'https?://(?:www\.)?(depositfiles\.com|dfiles\.(eu|ru))(/\w{1,3})?/files/(?P<ID>\w+)'
@@ -72,7 +72,7 @@ class DepositfilesCom(SimpleHoster):
recaptcha = ReCaptcha(self)
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
for _ in xrange(5):
self.html = self.load("https://dfiles.eu/get_file.php", get=params)
@@ -92,7 +92,7 @@ class DepositfilesCom(SimpleHoster):
self.logDebug("LINK: %s" % link)
break
else:
- self.parseError('Download link')
+ self.error('Download link')
else:
self.fail('No valid captcha response received')
@@ -118,7 +118,7 @@ class DepositfilesCom(SimpleHoster):
elif mirror:
dlink = mirror.group(1)
else:
- self.parseError("No direct download link or mirror found")
+ self.error("No direct download link or mirror found")
self.download(dlink, disposition=True)
diff --git a/module/plugins/hoster/DevhostSt.py b/module/plugins/hoster/DevhostSt.py
index 5c9055ca0..6ad6a551f 100644
--- a/module/plugins/hoster/DevhostSt.py
+++ b/module/plugins/hoster/DevhostSt.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DevhostSt(SimpleHoster):
__name__ = "DevhostSt"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}'
@@ -35,7 +35,7 @@ class DevhostSt(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Download link not found")
+ self.error("Download link not found")
dl_url = m.group(1)
self.logDebug("Download URL = " + dl_url)
@@ -43,7 +43,7 @@ class DevhostSt(SimpleHoster):
check = self.checkDownload({'html': re.compile("html")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error("Downloaded file is an html file")
getInfo = create_getInfo(DevhostSt)
diff --git a/module/plugins/hoster/DropboxCom.py b/module/plugins/hoster/DropboxCom.py
index 01d06e842..c0f8e8306 100644
--- a/module/plugins/hoster/DropboxCom.py
+++ b/module/plugins/hoster/DropboxCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DropboxCom(SimpleHoster):
__name__ = "DropboxCom"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'https?://(?:www\.)?dropbox\.com/.+'
@@ -36,7 +36,7 @@ class DropboxCom(SimpleHoster):
check = self.checkDownload({'html': re.compile("html")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error("Downloaded file is an html file")
getInfo = create_getInfo(DropboxCom)
diff --git a/module/plugins/hoster/EdiskCz.py b/module/plugins/hoster/EdiskCz.py
index afcd18e56..5112c55ab 100644
--- a/module/plugins/hoster/EdiskCz.py
+++ b/module/plugins/hoster/EdiskCz.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class EdiskCz(SimpleHoster):
__name__ = "EdiskCz"
__type__ = "hoster"
- __version__ = "0.21"
+ __version__ = "0.22"
__pattern__ = r'http://(?:www\.)?edisk\.(cz|sk|eu)/(stahni|sk/stahni|en/download)/.*'
@@ -34,7 +34,7 @@ class EdiskCz(SimpleHoster):
m = re.search(self.ACTION_PATTERN, url)
if m is None:
- self.parseError("ACTION")
+ self.error("ACTION")
action = m.group(1)
self.html = self.load(url, decode=True)
diff --git a/module/plugins/hoster/EuroshareEu.py b/module/plugins/hoster/EuroshareEu.py
index b538a3ed9..a4a4e6881 100644
--- a/module/plugins/hoster/EuroshareEu.py
+++ b/module/plugins/hoster/EuroshareEu.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class EuroshareEu(SimpleHoster):
__name__ = "EuroshareEu"
__type__ = "hoster"
- __version__ = "0.25"
+ __version__ = "0.26"
__pattern__ = r'http://(?:www\.)?euroshare\.(eu|sk|cz|hu|pl)/file/.*'
@@ -52,7 +52,7 @@ class EuroshareEu(SimpleHoster):
m = re.search(self.FREE_URL_PATTERN, self.html)
if m is None:
- self.parseError("Parse error (URL)")
+ self.error("Parse error (URL)")
parsed_url = "http://euroshare.eu%s" % m.group(1)
self.logDebug("URL", parsed_url)
self.download(parsed_url, disposition=True)
diff --git a/module/plugins/hoster/ExtabitCom.py b/module/plugins/hoster/ExtabitCom.py
index 4b0d3d95b..489b2453e 100644
--- a/module/plugins/hoster/ExtabitCom.py
+++ b/module/plugins/hoster/ExtabitCom.py
@@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class ExtabitCom(SimpleHoster):
__name__ = "ExtabitCom"
__type__ = "hoster"
- __version__ = "0.6"
+ __version__ = "0.61"
__pattern__ = r'http://(?:www\.)?extabit\.com/(file|go|fid)/(?P<ID>\w+)'
@@ -61,15 +61,15 @@ class ExtabitCom(SimpleHoster):
else:
self.fail("Invalid captcha")
else:
- self.parseError('Captcha')
+ self.error('Captcha')
if not "href" in response:
- self.parseError('JSON')
+ self.error('JSON')
self.html = self.load("http://extabit.com/file/%s%s" % (fileID, response['href']))
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError('Download URL')
+ self.error('Download URL')
url = m.group(1)
self.logDebug("Download URL: " + url)
self.download(url)
diff --git a/module/plugins/hoster/FastshareCz.py b/module/plugins/hoster/FastshareCz.py
index 8c00aeef4..337977095 100644
--- a/module/plugins/hoster/FastshareCz.py
+++ b/module/plugins/hoster/FastshareCz.py
@@ -13,7 +13,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FastshareCz(SimpleHoster):
__name__ = "FastshareCz"
__type__ = "hoster"
- __version__ = "0.22"
+ __version__ = "0.23"
__pattern__ = r'http://(?:www\.)?fastshare\.cz/\d+/.+'
@@ -44,7 +44,7 @@ class FastshareCz(SimpleHoster):
if m:
action, captcha_src = m.groups()
else:
- self.parseError("Free URL")
+ self.error("Free URL")
baseurl = "http://www.fastshare.cz"
captcha = self.decryptCaptcha(urljoin(baseurl, captcha_src))
@@ -77,7 +77,7 @@ class FastshareCz(SimpleHoster):
if m:
url = m.group(1)
else:
- self.parseError("Premium URL")
+ self.error("Premium URL")
self.logDebug("PREMIUM URL: " + url)
self.download(url, disposition=True)
diff --git a/module/plugins/hoster/File4safeCom.py b/module/plugins/hoster/File4safeCom.py
index e5927dd69..211e668a1 100644
--- a/module/plugins/hoster/File4safeCom.py
+++ b/module/plugins/hoster/File4safeCom.py
@@ -10,7 +10,7 @@ from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo
class File4safeCom(XFSPHoster):
__name__ = "File4safeCom"
__type__ = "hoster"
- __version__ = "0.04"
+ __version__ = "0.05"
__pattern__ = r'https?://(?:www\.)?file4safe\.com/\w{12}'
@@ -35,7 +35,7 @@ class File4safeCom(XFSPHoster):
location = m.group(1).strip()
self.startDownload(location)
else:
- self.parseError("Unable to detect premium download link")
+ self.error("Unable to detect premium download link")
getInfo = create_getInfo(File4safeCom)
diff --git a/module/plugins/hoster/FilecloudIo.py b/module/plugins/hoster/FilecloudIo.py
index da7683160..5672e780d 100644
--- a/module/plugins/hoster/FilecloudIo.py
+++ b/module/plugins/hoster/FilecloudIo.py
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilecloudIo(SimpleHoster):
__name__ = "FilecloudIo"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'http://(?:www\.)?(?:filecloud\.io|ifile\.it|mihd\.net)/(?P<ID>\w+).*'
@@ -42,7 +42,7 @@ class FilecloudIo(SimpleHoster):
m = re.search(self.AB1_PATTERN, self.html)
if m is None:
- self.parseError("__AB1")
+ self.error("__AB1")
data['__ab1'] = m.group(1)
recaptcha = ReCaptcha(self)
@@ -51,7 +51,7 @@ class FilecloudIo(SimpleHoster):
captcha_key = m.group(1) if m else recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
if not self.account:
self.fail("User not logged in")
@@ -94,7 +94,7 @@ class FilecloudIo(SimpleHoster):
self.html = self.load('http://filecloud.io/download.html')
m = re.search(self.LINK_PATTERN % self.file_info['ID'], self.html)
if m is None:
- self.parseError("Download URL")
+ self.error("Download URL")
download_url = m.group(1)
self.logDebug("Download URL: %s" % download_url)
diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py
index 8d231e350..0e422f108 100644
--- a/module/plugins/hoster/FilefactoryCom.py
+++ b/module/plugins/hoster/FilefactoryCom.py
@@ -20,7 +20,7 @@ def getInfo(urls):
class FilefactoryCom(SimpleHoster):
__name__ = "FilefactoryCom"
__type__ = "hoster"
- __version__ = "0.50"
+ __version__ = "0.51"
__pattern__ = r'https?://(?:www\.)?filefactory\.com/file/(?P<id>\w+)'
@@ -58,20 +58,20 @@ class FilefactoryCom(SimpleHoster):
# Load the page that contains the direct link
url = re.search(r"document\.location\.host \+\s*'(.+)';", self.html)
if url is None:
- self.parseError('Unable to detect free link')
+ self.error('Unable to detect free link')
url = 'http://www.filefactory.com' + url.group(1)
self.html = self.load(url, decode=True)
# Free downloads wait time
waittime = re.search(r'id="startWait" value="(\d+)"', self.html)
if not waittime:
- self.parseError('Unable to detect wait time')
+ self.error('Unable to detect wait time')
self.wait(int(waittime.group(1)))
# Parse the direct link and download it
direct = re.search(r'data-href(?:-direct)?="(.*)" class="button', self.html)
if not direct:
- self.parseError('Unable to detect free direct link')
+ self.error('Unable to detect free direct link')
direct = direct.group(1)
self.logDebug("DIRECT LINK: " + direct)
@@ -101,7 +101,7 @@ class FilefactoryCom(SimpleHoster):
if m:
url = m.group(1)
else:
- self.parseError('Unable to detect premium direct link')
+ self.error('Unable to detect premium direct link')
self.logDebug("DIRECT PREMIUM LINK: " + url)
self.download(url, disposition=True)
diff --git a/module/plugins/hoster/FilepostCom.py b/module/plugins/hoster/FilepostCom.py
index f833ab737..0748b64f2 100644
--- a/module/plugins/hoster/FilepostCom.py
+++ b/module/plugins/hoster/FilepostCom.py
@@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilepostCom(SimpleHoster):
__name__ = "FilepostCom"
__type__ = "hoster"
- __version__ = "0.28"
+ __version__ = "0.29"
__pattern__ = r'https?://(?:www\.)?(?:filepost\.com/files|fp\.io)/([^/]+).*'
@@ -35,12 +35,12 @@ class FilepostCom(SimpleHoster):
m = re.search(self.FLP_TOKEN_PATTERN, self.html)
if m is None:
- self.parseError("Token")
+ self.error("Token")
flp_token = m.group(1)
m = re.search(self.RECAPTCHA_PATTERN, self.html)
if m is None:
- self.parseError("Captcha key")
+ self.error("Captcha key")
captcha_key = m.group(1)
# Get wait time
@@ -98,7 +98,7 @@ class FilepostCom(SimpleHoster):
self.logDebug(json_response)
if not 'js' in json_response:
- self.parseError('JSON %s 1' % field)
+ self.error('JSON %s 1' % field)
# i changed js_answer to json_response['js'] since js_answer is nowhere set.
# i don't know the JSON-HTTP specs in detail, but the previous author
@@ -122,7 +122,7 @@ class FilepostCom(SimpleHoster):
# ~? self.fail(js_answer['error'])
if not 'answer' in json_response['js'] or not field in json_response['js']['answer']:
- self.parseError('JSON %s 2' % field)
+ self.error('JSON %s 2' % field)
return json_response['js']['answer'][field]
diff --git a/module/plugins/hoster/FilepupNet.py b/module/plugins/hoster/FilepupNet.py
index 39979b2a2..366cefc88 100644
--- a/module/plugins/hoster/FilepupNet.py
+++ b/module/plugins/hoster/FilepupNet.py
@@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilepupNet(SimpleHoster):
__name__ = "FilepupNet"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?filepup\.net/files/\w+'
@@ -38,14 +38,14 @@ class FilepupNet(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Download link not found")
+ self.error("Download link not found")
dl_link = m.group(1)
self.download(dl_link, post={'task': "download"})
check = self.checkDownload({'html': re.compile("html")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error("Downloaded file is an html file")
getInfo = create_getInfo(FilepupNet)
diff --git a/module/plugins/hoster/FilerNet.py b/module/plugins/hoster/FilerNet.py
index 7534c669d..46c914e9b 100644
--- a/module/plugins/hoster/FilerNet.py
+++ b/module/plugins/hoster/FilerNet.py
@@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilerNet(SimpleHoster):
__name__ = "FilerNet"
__type__ = "hoster"
- __version__ = "0.05"
+ __version__ = "0.06"
__pattern__ = r'https?://(?:www\.)?filer\.net/get/(\w+)'
@@ -56,7 +56,7 @@ class FilerNet(SimpleHoster):
inputs = self.parseHtmlForm(input_names='token')[1]
if 'token' not in inputs:
- self.parseError('Unable to detect token')
+ self.error('Unable to detect token')
token = inputs['token']
self.logDebug("Token: " + token)
@@ -64,7 +64,7 @@ class FilerNet(SimpleHoster):
inputs = self.parseHtmlForm(input_names='hash')[1]
if 'hash' not in inputs:
- self.parseError('Unable to detect hash')
+ self.error('Unable to detect hash')
hash_data = inputs['hash']
self.logDebug("Hash: " + hash_data)
@@ -106,7 +106,7 @@ class FilerNet(SimpleHoster):
html = self.load(self.pyfile.url)
m = re.search(self.LINK_PATTERN, html)
if m is None:
- self.parseError("Unable to detect direct link, try to enable 'Direct download' in your user settings")
+ self.error("Unable to detect direct link, try to enable 'Direct download' in your user settings")
dl = 'http://filer.net' + m.group(1)
self.logDebug("Direct link: " + dl)
diff --git a/module/plugins/hoster/FourSharedCom.py b/module/plugins/hoster/FourSharedCom.py
index 348a027fe..00dcf4973 100644
--- a/module/plugins/hoster/FourSharedCom.py
+++ b/module/plugins/hoster/FourSharedCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FourSharedCom(SimpleHoster):
__name__ = "FourSharedCom"
__type__ = "hoster"
- __version__ = "0.29"
+ __version__ = "0.30"
__pattern__ = r'https?://(?:www\.)?4shared(\-china)?\.com/(account/)?(download|get|file|document|photo|video|audio|mp3|office|rar|zip|archive|music)/.+?/.*'
@@ -44,7 +44,7 @@ class FourSharedCom(SimpleHoster):
m = re.search(self.DOWNLOAD_URL_PATTERN, self.html)
if m is None:
- self.parseError('Download link')
+ self.error('Download link')
link = m.group(1)
try:
diff --git a/module/plugins/hoster/FshareVn.py b/module/plugins/hoster/FshareVn.py
index 2f95d49e6..1a995ce28 100644
--- a/module/plugins/hoster/FshareVn.py
+++ b/module/plugins/hoster/FshareVn.py
@@ -27,7 +27,7 @@ def doubleDecode(m):
class FshareVn(SimpleHoster):
__name__ = "FshareVn"
__type__ = "hoster"
- __version__ = "0.16"
+ __version__ = "0.17"
__pattern__ = r'http://(?:www\.)?fshare\.vn/file/.*'
@@ -67,7 +67,7 @@ class FshareVn(SimpleHoster):
self.url = self.pyfile.url + action
if not inputs:
- self.parseError('FORM')
+ self.error('FORM')
elif 'link_file_pwd_dl' in inputs:
for password in self.getPassword().splitlines():
self.logInfo("Password protected link, trying", password)
@@ -87,7 +87,7 @@ class FshareVn(SimpleHoster):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError('FREE DL URL')
+ self.error('FREE DL URL')
self.url = m.group(1)
self.logDebug("FREE DL URL: %s" % self.url)
diff --git a/module/plugins/hoster/HellshareCz.py b/module/plugins/hoster/HellshareCz.py
index ddb7682b1..10975829c 100644
--- a/module/plugins/hoster/HellshareCz.py
+++ b/module/plugins/hoster/HellshareCz.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class HellshareCz(SimpleHoster):
__name__ = "HellshareCz"
__type__ = "hoster"
- __version__ = "0.82"
+ __version__ = "0.83"
__pattern__ = r'(http://(?:www\.)?hellshare\.(?:cz|com|sk|hu|pl)/[^?]*/\d+).*'
@@ -38,7 +38,7 @@ class HellshareCz(SimpleHoster):
m = re.search(self.SHOW_WINDOW_PATTERN, self.html)
if m is None:
- self.parseError('SHOW WINDOW')
+ self.error('SHOW WINDOW')
self.url = "http://www.hellshare.com" + m.group(1)
self.logDebug("DOWNLOAD URL: " + self.url)
diff --git a/module/plugins/hoster/IfileIt.py b/module/plugins/hoster/IfileIt.py
index e6bd4fd04..ca5896e2d 100644
--- a/module/plugins/hoster/IfileIt.py
+++ b/module/plugins/hoster/IfileIt.py
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class IfileIt(SimpleHoster):
__name__ = "IfileIt"
__type__ = "hoster"
- __version__ = "0.27"
+ __version__ = "0.28"
__pattern__ = r'^unmatchable$'
@@ -56,7 +56,7 @@ class IfileIt(SimpleHoster):
self.fail("Incorrect captcha")
if not "ticket_url" in json_response:
- self.parseError("Download URL")
+ self.error("Download URL")
self.download(json_response['ticket_url'])
diff --git a/module/plugins/hoster/Keep2shareCC.py b/module/plugins/hoster/Keep2shareCC.py
index a9d4145d1..1da65f3c8 100644
--- a/module/plugins/hoster/Keep2shareCC.py
+++ b/module/plugins/hoster/Keep2shareCC.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class Keep2shareCC(SimpleHoster):
__name__ = "Keep2shareCC"
__type__ = "hoster"
- __version__ = "0.10"
+ __version__ = "0.11"
__pattern__ = r'https?://(?:www\.)?(keep2share|k2s|keep2s)\.cc/file/(?P<ID>\w+)'
@@ -64,7 +64,7 @@ class Keep2shareCC(SimpleHoster):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Unable to detect direct link")
+ self.error("Unable to detect direct link")
self.startDownload(m.group(1))
@@ -73,7 +73,7 @@ class Keep2shareCC(SimpleHoster):
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
for _ in xrange(5):
challenge, response = recaptcha.challenge(captcha_key)
diff --git a/module/plugins/hoster/KingfilesNet.py b/module/plugins/hoster/KingfilesNet.py
index e4e664c14..c6dbd1e5c 100644
--- a/module/plugins/hoster/KingfilesNet.py
+++ b/module/plugins/hoster/KingfilesNet.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class KingfilesNet(SimpleHoster):
__name__ = "KingfilesNet"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?kingfiles\.net/(?P<ID>\w{12})'
@@ -48,7 +48,7 @@ class KingfilesNet(SimpleHoster):
captcha_key = solvemedia.detect_key()
if captcha_key is None:
- self.parseError("SolveMedia key not found")
+ self.error("SolveMedia key not found")
self.logDebug("captcha_key", captcha_key)
captcha_challenge, captcha_response = solvemedia.challenge(captcha_key)
@@ -56,7 +56,7 @@ class KingfilesNet(SimpleHoster):
# Make the downloadlink appear and load the file
m = re.search(self.RAND_ID_PATTERN, b)
if m is None:
- self.parseError("Random key not found")
+ self.error("Random key not found")
rand = m.group(1)
self.logDebug("rand", rand)
@@ -74,14 +74,14 @@ class KingfilesNet(SimpleHoster):
m = re.search(self.LINK_PATTERN, c)
if m is None:
- self.parseError("Download url not found")
+ self.error("Download url not found")
dl_url = m.group(1)
self.download(dl_url, cookies=True, disposition=True)
check = self.checkDownload({'html': re.compile("<html>")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error("Downloaded file is an html file")
getInfo = create_getInfo(KingfilesNet)
diff --git a/module/plugins/hoster/LetitbitNet.py b/module/plugins/hoster/LetitbitNet.py
index 17e638a18..8443c2206 100644
--- a/module/plugins/hoster/LetitbitNet.py
+++ b/module/plugins/hoster/LetitbitNet.py
@@ -36,7 +36,7 @@ def getInfo(urls):
class LetitbitNet(SimpleHoster):
__name__ = "LetitbitNet"
__type__ = "hoster"
- __version__ = "0.24"
+ __version__ = "0.25"
__pattern__ = r'http://(?:www\.)?(letitbit|shareflare)\.net/download/.*'
@@ -70,7 +70,7 @@ class LetitbitNet(SimpleHoster):
def handleFree(self):
action, inputs = self.parseHtmlForm('id="ifree_form"')
if not action:
- self.parseError("page 1 / ifree_form")
+ self.error("page 1 / ifree_form")
domain = "http://www." + self.HOSTER_NAME
self.pyfile.size = float(inputs['sssize'])
@@ -81,7 +81,7 @@ class LetitbitNet(SimpleHoster):
# action, inputs = self.parseHtmlForm('id="d3_form"')
# if not action:
- # self.parseError("page 2 / d3_form")
+ # self.error("page 2 / d3_form")
# self.logDebug(action, inputs)
#
# self.html = self.load(action, post = inputs, cookies = True)
@@ -93,7 +93,7 @@ class LetitbitNet(SimpleHoster):
# self.wait(seconds+1)
# except Exception, e:
# self.logError(e)
- # self.parseError("page 3 / js")
+ # self.error("page 3 / js")
m = re.search(self.SECONDS_PATTERN, self.html)
seconds = int(m.group(1)) if m else 60
@@ -105,14 +105,14 @@ class LetitbitNet(SimpleHoster):
response = self.load("%s/ajax/download3.php" % domain, post=" ", cookies=True)
if response != '1':
- self.parseError('Unknown response - ajax_check_url')
+ self.error('Unknown response - ajax_check_url')
self.logDebug(response)
recaptcha = ReCaptcha(self)
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
challenge, response = recaptcha.challenge(captcha_key)
@@ -135,7 +135,7 @@ class LetitbitNet(SimpleHoster):
elif response.startswith('http://'):
urls = [response]
else:
- self.parseError("Unknown response - captcha check")
+ self.error("Unknown response - captcha check")
self.correctCaptcha()
diff --git a/module/plugins/hoster/LoadTo.py b/module/plugins/hoster/LoadTo.py
index b0f974133..6f1fdb575 100644
--- a/module/plugins/hoster/LoadTo.py
+++ b/module/plugins/hoster/LoadTo.py
@@ -13,7 +13,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class LoadTo(SimpleHoster):
__name__ = "LoadTo"
__type__ = "hoster"
- __version__ = "0.16"
+ __version__ = "0.17"
__pattern__ = r'http://(?:www\.)?load\.to/\w+'
@@ -42,7 +42,7 @@ class LoadTo(SimpleHoster):
# Search for Download URL
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Unable to detect download URL")
+ self.error("Unable to detect download URL")
download_url = m.group(1)
diff --git a/module/plugins/hoster/LuckyShareNet.py b/module/plugins/hoster/LuckyShareNet.py
index 82c615bbd..fe5a80679 100644
--- a/module/plugins/hoster/LuckyShareNet.py
+++ b/module/plugins/hoster/LuckyShareNet.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class LuckyShareNet(SimpleHoster):
__name__ = "LuckyShareNet"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'https?://(?:www\.)?luckyshare\.net/(?P<ID>\d{10,})'
@@ -33,7 +33,7 @@ class LuckyShareNet(SimpleHoster):
self.logDebug("You have to wait %d seconds between free downloads" % waittime)
self.retry(wait_time=waittime)
else:
- self.parseError('Unable to detect wait time between free downloads')
+ self.error('Unable to detect wait time between free downloads')
elif 'Hash expired' in rep:
self.retry(reason="Hash expired")
return json_loads(rep)
@@ -53,7 +53,7 @@ class LuckyShareNet(SimpleHoster):
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
for _ in xrange(5):
challenge, response = recaptcha.challenge(captcha_key)
@@ -68,7 +68,7 @@ class LuckyShareNet(SimpleHoster):
self.logInfo("Wrong captcha")
self.invalidCaptcha()
else:
- self.parseError('Unable to get downlaod link')
+ self.error('Unable to get downlaod link')
if not json['link']:
self.fail("No Download url retrieved/all captcha attempts failed")
diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py
index 6d29d4db3..c2581aa9f 100644
--- a/module/plugins/hoster/MediafireCom.py
+++ b/module/plugins/hoster/MediafireCom.py
@@ -47,7 +47,7 @@ def getInfo(urls):
class MediafireCom(SimpleHoster):
__name__ = "MediafireCom"
__type__ = "hoster"
- __version__ = "0.79"
+ __version__ = "0.80"
__pattern__ = r'http://(?:www\.)?mediafire\.com/(file/|(view/?|download\.php)?\?)(\w{11}|\w{15})($|/)'
@@ -105,7 +105,7 @@ class MediafireCom(SimpleHoster):
m = re.search(r'kNO = r"(http://.*?)";', self.html)
if m is None:
- self.parseError("Download URL")
+ self.error("Download URL")
download_url = m.group(1)
self.logDebug("DOWNLOAD LINK:", download_url)
@@ -116,7 +116,7 @@ class MediafireCom(SimpleHoster):
captcha_key = solvemedia.detect_key()
if captcha_key is None:
- self.parseError("SolveMedia key not found")
+ self.error("SolveMedia key not found")
captcha_challenge, captcha_response = solvemedia.challenge(captcha_key)
self.html = self.load(self.url, post={"adcopy_challenge": captcha_challenge,
diff --git a/module/plugins/hoster/MegasharesCom.py b/module/plugins/hoster/MegasharesCom.py
index 2a7d4659d..19942f136 100644
--- a/module/plugins/hoster/MegasharesCom.py
+++ b/module/plugins/hoster/MegasharesCom.py
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class MegasharesCom(SimpleHoster):
__name__ = "MegasharesCom"
__type__ = "hoster"
- __version__ = "0.25"
+ __version__ = "0.26"
__pattern__ = r'http://(?:www\.)?(d\d{2}\.)?megashares\.com/((index\.php)?\?d\d{2}=|dl/)\w+'
@@ -98,7 +98,7 @@ class MegasharesCom(SimpleHoster):
m = re.search(self.LINK_PATTERN % (1 if premium else 2), self.html)
msg = '%s download URL' % ('Premium' if premium else 'Free')
if m is None:
- self.parseError(msg)
+ self.error(msg)
download_url = m.group(1)
self.logDebug("%s: %s" % (msg, download_url))
diff --git a/module/plugins/hoster/NarodRu.py b/module/plugins/hoster/NarodRu.py
index c1e1e308a..f70ff9622 100644
--- a/module/plugins/hoster/NarodRu.py
+++ b/module/plugins/hoster/NarodRu.py
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class NarodRu(SimpleHoster):
__name__ = "NarodRu"
__type__ = "hoster"
- __version__ = "0.1"
+ __version__ = "0.11"
__pattern__ = r'http://(?:www\.)?narod(\.yandex)?\.ru/(disk|start/\d+\.\w+-narod\.yandex\.ru)/(?P<ID>\d+)/.+'
@@ -36,7 +36,7 @@ class NarodRu(SimpleHoster):
self.html = self.load('http://narod.ru/disk/getcapchaxml/?rnd=%d' % int(random() * 777))
m = re.search(self.CAPTCHA_PATTERN, self.html)
if m is None:
- self.parseError('Captcha')
+ self.error('Captcha')
post_data = {"action": "sendcapcha"}
captcha_url, post_data['key'] = m.groups()
post_data['rep'] = self.decryptCaptcha(captcha_url)
@@ -50,7 +50,7 @@ class NarodRu(SimpleHoster):
elif u'<b class="error-msg"><strong>Ошиблись?</strong>' in self.html:
self.invalidCaptcha()
else:
- self.parseError('Download link')
+ self.error('Download link')
else:
self.fail("No valid captcha code entered")
diff --git a/module/plugins/hoster/NowVideoAt.py b/module/plugins/hoster/NowVideoAt.py
index c224b6172..93ecec9cf 100644
--- a/module/plugins/hoster/NowVideoAt.py
+++ b/module/plugins/hoster/NowVideoAt.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class NowVideoAt(SimpleHoster):
__name__ = "NowVideoAt"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?nowvideo\.(at|ch|co|eu|sx)/(video|mobile/#/videos)/(?P<ID>\w+)'
@@ -30,7 +30,7 @@ class NowVideoAt(SimpleHoster):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Download link not found")
+ self.error("Download link not found")
self.download(m.group(1), disposition=True)
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py
index 41a618d13..e6e193b89 100644
--- a/module/plugins/hoster/OneFichierCom.py
+++ b/module/plugins/hoster/OneFichierCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class OneFichierCom(SimpleHoster):
__name__ = "OneFichierCom"
__type__ = "hoster"
- __version__ = "0.64"
+ __version__ = "0.65"
__pattern__ = r'https?://(?P<ID>\w+)\.(?P<HOST>(1fichier|d(es)?fichiers|pjointe)\.(com|fr|net|org)|(cjoint|mesfichiers|piecejointe|oi)\.(org|net)|tenvoi\.(com|org|net)|dl4free\.com|alterupload\.com|megadl\.fr)'
@@ -47,7 +47,7 @@ class OneFichierCom(SimpleHoster):
url, inputs = self.parseHtmlForm('action="http://%s' % self.file_info['ID'])
if not url:
- self.parseError("Download link not found")
+ self.error("Download link not found")
# Check for protection
if "pass" in inputs:
@@ -63,7 +63,7 @@ class OneFichierCom(SimpleHoster):
def handlePremium(self):
url, inputs = self.parseHtmlForm('action="http://%s' % self.file_info['ID'])
if not url:
- self.parseError("Download link not found")
+ self.error("Download link not found")
# Check for protection
if "pass" in inputs:
diff --git a/module/plugins/hoster/PromptfileCom.py b/module/plugins/hoster/PromptfileCom.py
index 4af762e29..641c1f642 100644
--- a/module/plugins/hoster/PromptfileCom.py
+++ b/module/plugins/hoster/PromptfileCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class PromptfileCom(SimpleHoster):
__name__ = "PromptfileCom"
__type__ = "hoster"
- __version__ = "0.11"
+ __version__ = "0.12"
__pattern__ = r'https?://(?:www\.)?promptfile\.com/'
@@ -28,7 +28,7 @@ class PromptfileCom(SimpleHoster):
# STAGE 1: get link to continue
m = re.search(self.CHASH_PATTERN, self.html)
if m is None:
- self.parseError("Unable to detect chash")
+ self.error("Unable to detect chash")
chash = m.group(1)
self.logDebug("Read chash %s" % chash)
# continue to stage2
@@ -37,7 +37,7 @@ class PromptfileCom(SimpleHoster):
# STAGE 2: get the direct link
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Unable to detect direct link")
+ self.error("Unable to detect direct link")
direct = m.group(1)
self.logDebug("Found direct link: " + direct)
self.download(direct, disposition=True)
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py
index 4840701e6..390d25f74 100644
--- a/module/plugins/hoster/RapidgatorNet.py
+++ b/module/plugins/hoster/RapidgatorNet.py
@@ -14,7 +14,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class RapidgatorNet(SimpleHoster):
__name__ = "RapidgatorNet"
__type__ = "hoster"
- __version__ = "0.23"
+ __version__ = "0.24"
__pattern__ = r'http://(?:www\.)?(rapidgator\.net|rg\.to)/file/\w+'
@@ -138,7 +138,7 @@ class RapidgatorNet(SimpleHoster):
else:
self.correctCaptcha()
else:
- self.parseError("Download link")
+ self.error("Download link")
def getCaptcha(self):
@@ -157,7 +157,7 @@ class RapidgatorNet(SimpleHoster):
captcha_key = m.group(1)
captcha = SolveMedia(self)
else:
- self.parseError("Captcha")
+ self.error("Captcha")
return captcha, captcha_key
diff --git a/module/plugins/hoster/RemixshareCom.py b/module/plugins/hoster/RemixshareCom.py
index 5e691c2bc..4e812b20d 100644
--- a/module/plugins/hoster/RemixshareCom.py
+++ b/module/plugins/hoster/RemixshareCom.py
@@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class RemixshareCom(SimpleHoster):
__name__ = "RemixshareCom"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'https?://remixshare\.com/(download|dl)/\w+'
@@ -41,10 +41,10 @@ class RemixshareCom(SimpleHoster):
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
diff --git a/module/plugins/hoster/RgHostNet.py b/module/plugins/hoster/RgHostNet.py
index 2018106cb..48ea8ff8c 100644
--- a/module/plugins/hoster/RgHostNet.py
+++ b/module/plugins/hoster/RgHostNet.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class RgHostNet(SimpleHoster):
__name__ = "RgHostNet"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?rghost\.net/\d+(?:r=\d+)?'
@@ -25,7 +25,7 @@ class RgHostNet(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Unable to detect the direct link")
+ self.error("Unable to detect the direct link")
download_link = m.group(1)
self.download(download_link, disposition=True)
diff --git a/module/plugins/hoster/RyushareCom.py b/module/plugins/hoster/RyushareCom.py
index 841af351c..cd77ac4a6 100644
--- a/module/plugins/hoster/RyushareCom.py
+++ b/module/plugins/hoster/RyushareCom.py
@@ -12,7 +12,7 @@ from module.plugins.internal.CaptchaService import SolveMedia
class RyushareCom(XFSPHoster):
__name__ = "RyushareCom"
__type__ = "hoster"
- __version__ = "0.18"
+ __version__ = "0.19"
__pattern__ = r'http://(?:www\.)?ryushare\.com/\w+'
@@ -63,7 +63,7 @@ class RyushareCom(XFSPHoster):
captcha_key = captcha.detect_key()
if captcha_key is None:
- self.parseError("SolveMedia key not found")
+ self.error("SolveMedia key not found")
challenge, response = captcha.challenge(captcha_key)
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index cfb1d6325..7a73ab316 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -39,7 +39,7 @@ def getInfo(urls):
class ShareonlineBiz(Hoster):
__name__ = "ShareonlineBiz"
__type__ = "hoster"
- __version__ = "0.40"
+ __version__ = "0.41"
__pattern__ = r'https?://(?:www\.)?(share-online\.biz|egoshare\.com)/(download\.php\?id=|dl/)(?P<ID>\w+)'
@@ -134,7 +134,7 @@ class ShareonlineBiz(Hoster):
download_url = response.decode("base64")
self.logDebug(download_url)
if not download_url.startswith("http://"):
- self.parseError("download url")
+ self.error("download url")
self.wait()
self.download(download_url)
diff --git a/module/plugins/hoster/SpeedyshareCom.py b/module/plugins/hoster/SpeedyshareCom.py
index c3acfc1e8..0696ae810 100644
--- a/module/plugins/hoster/SpeedyshareCom.py
+++ b/module/plugins/hoster/SpeedyshareCom.py
@@ -13,7 +13,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class SpeedyshareCom(SimpleHoster):
__name__ = "SpeedyshareCom"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'https?://(?:www\.)?(speedyshare\.com|speedy\.sh)/\w+'
@@ -38,14 +38,14 @@ class SpeedyshareCom(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Download link not found")
+ self.error("Download link not found")
dl_link = urljoin("http://www.speedyshare.com", m.group(1))
self.download(dl_link, disposition=True)
check = self.checkDownload({'html': re.compile("html")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error("Downloaded file is an html file")
getInfo = create_getInfo(SpeedyshareCom)
diff --git a/module/plugins/hoster/StreamcloudEu.py b/module/plugins/hoster/StreamcloudEu.py
index e6a2b0226..49820bae6 100644
--- a/module/plugins/hoster/StreamcloudEu.py
+++ b/module/plugins/hoster/StreamcloudEu.py
@@ -11,7 +11,7 @@ from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo
class StreamcloudEu(XFSPHoster):
__name__ = "StreamcloudEu"
__type__ = "hoster"
- __version__ = "0.06"
+ __version__ = "0.07"
__pattern__ = r'http://(?:www\.)?streamcloud\.eu/\w{12}'
@@ -78,7 +78,7 @@ class StreamcloudEu(XFSPHoster):
if self.errmsg:
self.retry()
else:
- self.parseError("Form not found")
+ self.error("Form not found")
self.logDebug(self.HOSTER_NAME, inputs)
@@ -122,7 +122,7 @@ class StreamcloudEu(XFSPHoster):
self.errmsg = None
else:
- self.parseError('FORM: %s' % (inputs['op'] if 'op' in inputs else 'UNKNOWN'))
+ self.error('FORM: %s' % (inputs['op'] if 'op' in inputs else 'UNKNOWN'))
getInfo = create_getInfo(StreamcloudEu)
diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py
index 2d3c4e14a..8557e0ce7 100644
--- a/module/plugins/hoster/TurbobitNet.py
+++ b/module/plugins/hoster/TurbobitNet.py
@@ -17,7 +17,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, t
class TurbobitNet(SimpleHoster):
__name__ = "TurbobitNet"
__type__ = "hoster"
- __version__ = "0.12"
+ __version__ = "0.13"
__pattern__ = r'http://(?:www\.)?turbobit\.net/(?:download/free/)?(?P<ID>\w+)'
@@ -67,20 +67,20 @@ class TurbobitNet(SimpleHoster):
action, inputs = self.parseHtmlForm("action='#'")
if not inputs:
- self.parseError("captcha form")
+ self.error("captcha form")
self.logDebug(inputs)
if inputs['captcha_type'] == 'recaptcha':
recaptcha = ReCaptcha(self)
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha captcha key not found")
+ self.error("ReCaptcha captcha key not found")
inputs['recaptcha_challenge_field'], inputs['recaptcha_response_field'] = recaptcha.challenge(captcha_key)
else:
m = re.search(self.CAPTCHA_URL_PATTERN, self.html)
if m is None:
- self.parseError('captcha')
+ self.error('captcha')
captcha_url = m.group(1)
inputs['captcha_response'] = self.decryptCaptcha(captcha_url)
@@ -172,7 +172,7 @@ class TurbobitNet(SimpleHoster):
def downloadFile(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Download link not found")
+ self.error("Download link not found")
self.url = "http://turbobit.net" + m.group('url')
self.download(self.url)
diff --git a/module/plugins/hoster/TwoSharedCom.py b/module/plugins/hoster/TwoSharedCom.py
index adfd44d6f..6b755219a 100644
--- a/module/plugins/hoster/TwoSharedCom.py
+++ b/module/plugins/hoster/TwoSharedCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class TwoSharedCom(SimpleHoster):
__name__ = "TwoSharedCom"
__type__ = "hoster"
- __version__ = "0.11"
+ __version__ = "0.12"
__pattern__ = r'http://(?:www\.)?2shared\.com/(account/)?(download|get|file|document|photo|video|audio)/.*'
@@ -30,7 +30,7 @@ class TwoSharedCom(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError('Download link')
+ self.error('Download link')
link = m.group(1)
self.logDebug("Download URL %s" % link)
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py
index 3759c0c7b..2d4762ba6 100644
--- a/module/plugins/hoster/UlozTo.py
+++ b/module/plugins/hoster/UlozTo.py
@@ -15,7 +15,7 @@ def convertDecimalPrefix(m):
class UlozTo(SimpleHoster):
__name__ = "UlozTo"
__type__ = "hoster"
- __version__ = "0.98"
+ __version__ = "0.99"
__pattern__ = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl)/(?:live/)?(?P<id>\w+/[^/?]*)'
@@ -53,7 +53,7 @@ class UlozTo(SimpleHoster):
m = re.search(self.TOKEN_PATTERN, self.html)
if m is None:
- self.parseError('TOKEN')
+ self.error('TOKEN')
token = m.group(1)
self.html = self.load(pyfile.url, get={"do": "askAgeForm-submit"},
@@ -84,7 +84,7 @@ class UlozTo(SimpleHoster):
def handleFree(self):
action, inputs = self.parseHtmlForm('id="frm-downloadDialog-freeDownloadForm"')
if not action or not inputs:
- self.parseError("free download form")
+ self.error("free download form")
self.logDebug("inputs.keys = " + str(inputs.keys()))
# get and decrypt captcha
@@ -110,7 +110,7 @@ class UlozTo(SimpleHoster):
inputs.update({'timestamp': data['timestamp'], 'salt': data['salt'], 'hash': data['hash'], 'captcha_value': captcha_value})
else:
- self.parseError("CAPTCHA form changed")
+ self.error("CAPTCHA form changed")
self.multiDL = True
self.download("http://www.ulozto.net" + action, post=inputs, cookies=True, disposition=True)
@@ -124,7 +124,7 @@ class UlozTo(SimpleHoster):
msg = "%s link" % ("Premium" if premium else "Free")
m = re.search(self.PREMIUM_URL_PATTERN if premium else self.FREE_URL_PATTERN, self.html)
if m is None:
- self.parseError(msg)
+ self.error(msg)
parsed_url = "http://www.ulozto.net" + m.group(1)
self.logDebug("%s: %s" % (msg, parsed_url))
return parsed_url
diff --git a/module/plugins/hoster/UloziskoSk.py b/module/plugins/hoster/UloziskoSk.py
index bd4bedf92..4323a71e5 100644
--- a/module/plugins/hoster/UloziskoSk.py
+++ b/module/plugins/hoster/UloziskoSk.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class UloziskoSk(SimpleHoster):
__name__ = "UloziskoSk"
__type__ = "hoster"
- __version__ = "0.23"
+ __version__ = "0.24"
__pattern__ = r'http://(?:www\.)?ulozisko\.sk/.*'
@@ -41,19 +41,19 @@ class UloziskoSk(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError('URL')
+ self.error('URL')
parsed_url = 'http://www.ulozisko.sk' + m.group(1)
m = re.search(self.ID_PATTERN, self.html)
if m is None:
- self.parseError('ID')
+ self.error('ID')
id = m.group(1)
self.logDebug("URL:" + parsed_url + ' ID:' + id)
m = re.search(self.CAPTCHA_PATTERN, self.html)
if m is None:
- self.parseError('CAPTCHA')
+ self.error('CAPTCHA')
captcha_url = 'http://www.ulozisko.sk' + m.group(1)
captcha = self.decryptCaptcha(captcha_url, cookies=True)
diff --git a/module/plugins/hoster/UploadheroCom.py b/module/plugins/hoster/UploadheroCom.py
index 914886fca..3c26a0b8b 100644
--- a/module/plugins/hoster/UploadheroCom.py
+++ b/module/plugins/hoster/UploadheroCom.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class UploadheroCom(SimpleHoster):
__name__ = "UploadheroCom"
__type__ = "hoster"
- __version__ = "0.15"
+ __version__ = "0.16"
__pattern__ = r'http://(?:www\.)?uploadhero\.com?/dl/\w+'
@@ -40,7 +40,7 @@ class UploadheroCom(SimpleHoster):
m = re.search(self.CAPTCHA_PATTERN, self.html)
if m is None:
- self.parseError("Captcha URL")
+ self.error("Captcha URL")
captcha_url = "http://uploadhero.co" + m.group(1)
for _ in xrange(5):
diff --git a/module/plugins/hoster/UploadingCom.py b/module/plugins/hoster/UploadingCom.py
index e3f75a3f9..71a1eb4a0 100644
--- a/module/plugins/hoster/UploadingCom.py
+++ b/module/plugins/hoster/UploadingCom.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, t
class UploadingCom(SimpleHoster):
__name__ = "UploadingCom"
__type__ = "hoster"
- __version__ = "0.36"
+ __version__ = "0.37"
__pattern__ = r'http://(?:www\.)?uploading\.com/files/(?:get/)?(?P<ID>\w+)'
@@ -76,21 +76,21 @@ class UploadingCom(SimpleHoster):
self.logInfo("%s: Waiting %d seconds." % (self.__name__, wait_time))
self.wait(wait_time)
else:
- self.parseError("AJAX/WAIT")
+ self.error("AJAX/WAIT")
response = json_loads(
self.load(ajax_url, post={'action': 'get_link', 'code': self.file_info['ID'], 'pass': 'false'}))
if 'answer' in response and 'link' in response['answer']:
url = response['answer']['link']
else:
- self.parseError("AJAX/URL")
+ self.error("AJAX/URL")
self.html = self.load(url)
m = re.search(r'<form id="file_form" action="(.*?)"', self.html)
if m:
url = m.group(1)
else:
- self.parseError("URL")
+ self.error("URL")
self.download(url)
diff --git a/module/plugins/hoster/UpstoreNet.py b/module/plugins/hoster/UpstoreNet.py
index fd13f6d41..257a186eb 100644
--- a/module/plugins/hoster/UpstoreNet.py
+++ b/module/plugins/hoster/UpstoreNet.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class UpstoreNet(SimpleHoster):
__name__ = "UpstoreNet"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'https?://(?:www\.)?upstore\.net/'
@@ -30,7 +30,7 @@ class UpstoreNet(SimpleHoster):
# STAGE 1: get link to continue
m = re.search(self.CHASH_PATTERN, self.html)
if m is None:
- self.parseError("could not detect hash")
+ self.error("could not detect hash")
chash = m.group(1)
self.logDebug("Read hash " + chash)
# continue to stage2
@@ -41,13 +41,13 @@ class UpstoreNet(SimpleHoster):
# first get the infos we need: recaptcha key and wait time
recaptcha = ReCaptcha(self)
if recaptcha.detect_key() is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
self.logDebug("Using captcha key " + recaptcha.key)
# try the captcha 5 times
for i in xrange(5):
m = re.search(self.WAIT_PATTERN, self.html)
if m is None:
- self.parseError("could not find wait pattern")
+ self.error("could not find wait pattern")
wait_time = m.group(1)
# then, do the waiting
@@ -66,7 +66,7 @@ class UpstoreNet(SimpleHoster):
break
if m is None:
- self.parseError("could not detect direct link")
+ self.error("could not detect direct link")
direct = m.group(1)
self.logDebug("Found direct link: " + direct)
diff --git a/module/plugins/hoster/WebshareCz.py b/module/plugins/hoster/WebshareCz.py
index 8412de7b8..6e0354d12 100644
--- a/module/plugins/hoster/WebshareCz.py
+++ b/module/plugins/hoster/WebshareCz.py
@@ -24,7 +24,7 @@ def getInfo(urls):
class WebshareCz(SimpleHoster):
__name__ = "WebshareCz"
__type__ = "hoster"
- __version__ = "0.13"
+ __version__ = "0.14"
__pattern__ = r'https?://(?:www\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)'
@@ -38,7 +38,7 @@ class WebshareCz(SimpleHoster):
self.logDebug("API data: " + api_data)
m = re.search('<link>(.+)</link>', api_data)
if m is None:
- self.parseError('Unable to detect direct link')
+ self.error('Unable to detect direct link')
direct = m.group(1)
self.logDebug("Direct link: " + direct)
self.download(direct, disposition=True)
diff --git a/module/plugins/hoster/WrzucTo.py b/module/plugins/hoster/WrzucTo.py
index 0076635e2..47731642d 100644
--- a/module/plugins/hoster/WrzucTo.py
+++ b/module/plugins/hoster/WrzucTo.py
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class WrzucTo(SimpleHoster):
__name__ = "WrzucTo"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?wrzuc\.to/(\w+(\.wt|\.html)|(\w+/?linki/\w+))'
@@ -31,7 +31,7 @@ class WrzucTo(SimpleHoster):
def handleFree(self):
data = dict(re.findall(r'(md5|file): "(.*?)"', self.html))
if len(data) != 2:
- self.parseError('File ID')
+ self.error('File ID')
self.req.http.c.setopt(HTTPHEADER, ["X-Requested-With: XMLHttpRequest"])
self.req.http.lastURL = self.pyfile.url
@@ -42,7 +42,7 @@ class WrzucTo(SimpleHoster):
data.update(re.findall(r'"(download_link|server_id)":"(.*?)"', self.html))
if len(data) != 4:
- self.parseError('Download URL')
+ self.error('Download URL')
download_url = "http://%s.wrzuc.to/pobierz/%s" % (data['server_id'], data['download_link'])
self.logDebug("Download URL: %s" % download_url)
diff --git a/module/plugins/hoster/YibaishiwuCom.py b/module/plugins/hoster/YibaishiwuCom.py
index 803c7d1c3..1ea44ddb4 100644
--- a/module/plugins/hoster/YibaishiwuCom.py
+++ b/module/plugins/hoster/YibaishiwuCom.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class YibaishiwuCom(SimpleHoster):
__name__ = "YibaishiwuCom"
__type__ = "hoster"
- __version__ = "0.12"
+ __version__ = "0.13"
__pattern__ = r'http://(?:www\.)?(?:u\.)?115\.com/file/(?P<ID>\w+)'
@@ -28,7 +28,7 @@ class YibaishiwuCom(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("AJAX URL")
+ self.error("AJAX URL")
url = m.group(1)
self.logDebug(('FREEUSER' if m.group(2) == 'download' else 'GUEST') + ' URL', url)
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py
index 6144132f9..9c1c3fa9b 100644
--- a/module/plugins/hoster/ZippyshareCom.py
+++ b/module/plugins/hoster/ZippyshareCom.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class ZippyshareCom(SimpleHoster):
__name__ = "ZippyshareCom"
__type__ = "hoster"
- __version__ = "0.52"
+ __version__ = "0.53"
__pattern__ = r'(?P<HOST>http://www\d{0,2}\.zippyshare\.com)/v(?:/|iew\.jsp.*key=)(?P<KEY>\d+)'
@@ -50,7 +50,7 @@ class ZippyshareCom(SimpleHoster):
c = lambda a,b: a + b
if not m:
- self.parseError("Unable to calculate checksum")
+ self.error("Unable to calculate checksum")
a = map(lambda x: int(x), m[0])
b = map(lambda x: int(x), m[1])