summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/SpeedyshareCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/SpeedyshareCom.py')
-rw-r--r--pyload/plugins/hoster/SpeedyshareCom.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/pyload/plugins/hoster/SpeedyshareCom.py b/pyload/plugins/hoster/SpeedyshareCom.py
index edf935d59..5128e42e7 100644
--- a/pyload/plugins/hoster/SpeedyshareCom.py
+++ b/pyload/plugins/hoster/SpeedyshareCom.py
@@ -11,22 +11,23 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class SpeedyshareCom(SimpleHoster):
- __name__ = "SpeedyshareCom"
- __type__ = "hoster"
- __version__ = "0.02"
+ __name__ = "SpeedyshareCom"
+ __type__ = "hoster"
+ __version__ = "0.03"
- __pattern__ = r"https?://(?:www\.)?(speedyshare\.com|speedy\.sh)/\w+"
+ __pattern__ = r'https?://(?:www\.)?(speedyshare\.com|speedy\.sh)/\w+'
__description__ = """Speedyshare.com hoster plugin"""
- __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
- FILE_NAME_PATTERN = r'class=downloadfilename>(?P<N>.*)</span></td>'
- FILE_SIZE_PATTERN = r'class=sizetagtext>(?P<S>.*) (?P<U>[kKmM]?[iI]?[bB]?)</div>'
+ NAME_PATTERN = r'class=downloadfilename>(?P<N>.*)</span></td>'
+ SIZE_PATTERN = r'class=sizetagtext>(?P<S>.*) (?P<U>[kKmM]?[iI]?[bB]?)</div>'
- FILE_OFFLINE_PATTERN = r'class=downloadfilenamenotfound>.*</span>'
+ OFFLINE_PATTERN = r'class=downloadfilenamenotfound>.*</span>'
- LINK_PATTERN = r'<a href=\'(.*)\'><img src=/gf/slowdownload.png alt=\'Slow Download\' border=0'
+ LINK_PATTERN = r'<a href=\'(.*)\'><img src=/gf/slowdownload\.png alt=\'Slow Download\' border=0'
def setup(self):
@@ -37,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 page"))
getInfo = create_getInfo(SpeedyshareCom)