summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-29 21:55:29 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-29 21:55:29 +0200
commit2d893a24d4bb8b5a7a00807ed6320358454577f8 (patch)
treee3bc35ee047bf86d12c2187b3fd01ef665de3096 /module/plugins
parentUpdate FilepostCom.py (diff)
downloadpyload-2d893a24d4bb8b5a7a00807ed6320358454577f8.tar.xz
[SimpleHoster] Improve documentation of own public attributes
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/SimpleHoster.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index f10433e78..8c2e3daae 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -169,15 +169,19 @@ class SimpleHoster(Hoster):
__description__ = """Simple hoster plugin"""
__author_name__ = ("zoidberg", "stickell")
__author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it")
+
"""
- These patterns should be defined by each hoster:
- FILE_INFO_PATTERN = r'(?P<N>file_name) (?P<S>file_size) (?P<U>units)'
- or FILE_NAME_PATTERN = r'(?P<N>file_name)'
- and FILE_SIZE_PATTERN = r'(?P<S>file_size) (?P<U>units)'
+ Following patterns should be defined by each hoster:
+ FILE_INFO_PATTERN = r'(?P<N>file_name) (?P<S>file_size) (?P<U>size_unit)'
+ or
+ FILE_NAME_PATTERN = r'(?P<N>file_name)'
+ FILE_SIZE_PATTERN = r'(?P<S>file_size) (?P<U>size_unit)'
+
FILE_OFFLINE_PATTERN = r'File (deleted|not found)'
TEMP_OFFLINE_PATTERN = r'Server maintainance'
- You can also define a PREMIUM_ONLY_PATTERN to detect links that can be downloaded only with a premium account.
+ You can also define:
+ PREMIUM_ONLY_PATTERN = r'Premium account required'
"""
FILE_SIZE_REPLACEMENTS = []