summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UploadStationCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2013-12-13 11:20:19 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-12-13 11:20:39 +0100
commit7f239b41cb29ee95c878f78a6e9cacd55f301a8d (patch)
tree6fdb219256a3fa2c6de6f858197d91c829f73ff2 /module/plugins/hoster/UploadStationCom.py
parentMerge pull request #434 from kmarty/stable (diff)
downloadpyload-7f239b41cb29ee95c878f78a6e9cacd55f301a8d.tar.xz
Some hosters marked as dead
Merged #375
Diffstat (limited to 'module/plugins/hoster/UploadStationCom.py')
-rw-r--r--module/plugins/hoster/UploadStationCom.py19
1 files changed, 5 insertions, 14 deletions
diff --git a/module/plugins/hoster/UploadStationCom.py b/module/plugins/hoster/UploadStationCom.py
index 2831facac..3583af65d 100644
--- a/module/plugins/hoster/UploadStationCom.py
+++ b/module/plugins/hoster/UploadStationCom.py
@@ -1,25 +1,16 @@
# -*- coding: utf-8 -*-
-from module.plugins.hoster.FileserveCom import FileserveCom, checkFile
-from module.plugins.Plugin import chunks
+from module.plugins.internal.DeadHoster import DeadHoster, create_getInfo
-class UploadStationCom(FileserveCom):
+
+class UploadStationCom(DeadHoster):
__name__ = "UploadStationCom"
__type__ = "hoster"
__pattern__ = r"http://(?:www\.)?uploadstation\.com/file/(?P<id>[A-Za-z0-9]+)"
- __version__ = "0.51"
+ __version__ = "0.52"
__description__ = """UploadStation.Com File Download Hoster"""
__author_name__ = ("fragonib", "zoidberg")
__author_mail__ = ("fragonib[AT]yahoo[DOT]es", "zoidberg@mujmail.cz")
- URLS = ['http://www.uploadstation.com/file/', 'http://www.uploadstation.com/check-links.php',
- 'http://www.uploadstation.com/checkReCaptcha.php']
- LINKCHECK_TR = r'<div class="details (?:white|grey)">(.*?)\t{9}</div>'
- LINKCHECK_TD = r'<div class="(?:col )?col\d">(?:<[^>]*>|&nbsp;)*([^<]*)'
-
- LONG_WAIT_PATTERN = r'<h1>You have to wait (\d+) (\w+) to download the next file\.</h1>'
-
-def getInfo(urls):
- for chunk in chunks(urls, 100):
- yield checkFile(UploadStationCom, chunk)
+getInfo = create_getInfo(UploadStationCom)