From 7f239b41cb29ee95c878f78a6e9cacd55f301a8d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 13 Dec 2013 11:20:19 +0100 Subject: Some hosters marked as dead Merged #375 --- module/plugins/hoster/UploadStationCom.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'module/plugins/hoster/UploadStationCom.py') 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[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'
(.*?)\t{9}
' - LINKCHECK_TD = r'
(?:<[^>]*>| )*([^<]*)' - - LONG_WAIT_PATTERN = r'

You have to wait (\d+) (\w+) to download the next file\.

' - -def getInfo(urls): - for chunk in chunks(urls, 100): - yield checkFile(UploadStationCom, chunk) +getInfo = create_getInfo(UploadStationCom) -- cgit v1.2.3