summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UploadStationCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 20:50:34 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 20:50:34 +0200
commit2edeee0532ec6d6b4b26fd045a5971f67ca455da (patch)
tree8d656afc9c18f7dba7c05d6635f898fdf58d66d6 /module/plugins/hoster/UploadStationCom.py
parentFixed PEP 8 violations in Crypters (diff)
downloadpyload-2edeee0532ec6d6b4b26fd045a5971f67ca455da.tar.xz
Fixed PEP 8 violations in Hosters
Diffstat (limited to 'module/plugins/hoster/UploadStationCom.py')
-rw-r--r--module/plugins/hoster/UploadStationCom.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/module/plugins/hoster/UploadStationCom.py b/module/plugins/hoster/UploadStationCom.py
index 96dc7b577..2831facac 100644
--- a/module/plugins/hoster/UploadStationCom.py
+++ b/module/plugins/hoster/UploadStationCom.py
@@ -2,6 +2,7 @@
from module.plugins.hoster.FileserveCom import FileserveCom, checkFile
from module.plugins.Plugin import chunks
+
class UploadStationCom(FileserveCom):
__name__ = "UploadStationCom"
__type__ = "hoster"
@@ -10,12 +11,15 @@ class UploadStationCom(FileserveCom):
__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']
+
+ 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) \ No newline at end of file
+ for chunk in chunks(urls, 100):
+ yield checkFile(UploadStationCom, chunk)