summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 13:52:01 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 13:52:01 +0200
commitd0aa0ece5e506469f631b388f6c38eaaa63b63c9 (patch)
treead14725eb20174f58ec1ad7c6864419120c90369 /module/plugins
parentConvert some crypters to use XFSPCrypter instead SimpleCrypter (diff)
downloadpyload-d0aa0ece5e506469f631b388f6c38eaaa63b63c9.tar.xz
Tiny code cosmetics
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/SimpleHoster.py10
-rw-r--r--module/plugins/internal/XFSPHoster.py3
2 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 895584af6..c2bc4909e 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -166,18 +166,18 @@ class SimpleHoster(Hoster):
"""
Following patterns should be defined by each hoster:
- FILE_INFO_PATTERN: Name and Size of the file
+ FILE_INFO_PATTERN: (optional) Name and Size of the file
example: FILE_INFO_PATTERN = r'(?P<N>file_name) (?P<S>file_size) (?P<U>size_unit)'
or
- FILE_NAME_PATTERN: Name that will be set for the file
+ FILE_NAME_PATTERN: (optional) Name that will be set for the file
example: FILE_NAME_PATTERN = r'(?P<N>file_name)'
- FILE_SIZE_PATTERN: Size that will be checked for the file
+ FILE_SIZE_PATTERN: (optional) Size that will be checked for the file
example: FILE_SIZE_PATTERN = r'(?P<S>file_size) (?P<U>size_unit)'
- OFFLINE_PATTERN: Checks if the file is yet available online
+ OFFLINE_PATTERN: (optional) Checks if the file is yet available online
example: OFFLINE_PATTERN = r'File (deleted|not found)'
- TEMP_OFFLINE_PATTERN: Checks if the file is temporarily offline
+ TEMP_OFFLINE_PATTERN: (optional) Checks if the file is temporarily offline
example: TEMP_OFFLINE_PATTERN = r'Server (maintenance|maintainance)'
PREMIUM_ONLY_PATTERN: (optional) Checks if the file can be downloaded only with a premium account
diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py
index f1a250f85..abf71b033 100644
--- a/module/plugins/internal/XFSPHoster.py
+++ b/module/plugins/internal/XFSPHoster.py
@@ -330,7 +330,7 @@ class XFSPHoster(SimpleHoster):
captcha_key = recaptcha.detect_key()
if captcha_key:
- self.logDebug("RECAPTCHA KEY: %s" % captcha_key)
+ self.logDebug("ReCaptcha key: %s" % captcha_key)
inputs['recaptcha_challenge_field'], inputs['recaptcha_response_field'] = recaptcha.challenge(captcha_key)
return 3
@@ -341,6 +341,7 @@ class XFSPHoster(SimpleHoster):
captcha_key = solvemedia.detect_key()
if captcha_key:
+ self.logDebug("SolveMedia key: %s" % captcha_key)
inputs['adcopy_challenge'], inputs['adcopy_response'] = solvemedia.challenge(captcha_key)
return 4