diff options
| author | 2015-03-15 19:25:21 +0100 | |
|---|---|---|
| committer | 2015-03-15 19:25:21 +0100 | |
| commit | 30e9fc73dfb8fb19bcee7704fc7f8ad40dea6925 (patch) | |
| tree | c46271b39d6b48176583f6147b3b8b4ccd6801fe /module/plugins/hoster | |
| parent | Fix https://github.com/pyload/pyload/issues/945 (thx https://github.com/mikki... (diff) | |
| download | pyload-30e9fc73dfb8fb19bcee7704fc7f8ad40dea6925.tar.xz | |
[FastshareCz] Update hoster info patterns (thx https://github.com/mikkiste)
Diffstat (limited to 'module/plugins/hoster')
| -rw-r--r-- | module/plugins/hoster/FastshareCz.py | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/module/plugins/hoster/FastshareCz.py b/module/plugins/hoster/FastshareCz.py index 626521ed2..2822d93d5 100644 --- a/module/plugins/hoster/FastshareCz.py +++ b/module/plugins/hoster/FastshareCz.py @@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class FastshareCz(SimpleHoster):      __name__    = "FastshareCz"      __type__    = "hoster" -    __version__ = "0.28" +    __version__ = "0.29"      __pattern__ = r'http://(?:www\.)?fastshare\.cz/\d+/.+' @@ -22,11 +22,12 @@ class FastshareCz(SimpleHoster):      COOKIES = [("fastshare.cz", "lang", "en")] -    INFO_PATTERN    = r'<h1 class="dwp">(?P<N>[^<]+)</h1>\s*<div class="fileinfo">\s*Size\s*: (?P<S>\d+) (?P<U>[\w^_]+),' +    NAME_PATTERN    = r'<h3 class="section_title">(?P<N>.+?)<' +    SIZE_PATTERN    = r'>Size\s*:</strong> (?P<S>[\d.,]+) (?P<U>[\w^_]+)'      OFFLINE_PATTERN = r'>(The file has been deleted|Requested page not found)' -    LINK_FREE_PATTERN    = r'action=(/free/.*?)>\s*<img src="([^"]*)"><br' -    LINK_PREMIUM_PATTERN = r'(http://data\d+\.fastshare\.cz/download\.php\?id=\d+&)' +    LINK_FREE_PATTERN    = r'>Enter the code\s*:</em>\s*<span><img src="(.+?)"' +    LINK_PREMIUM_PATTERN = r'(http://\w+\.fastshare\.cz/download\.php\?id=\d+&)'      SLOT_ERROR   = "> 100% of FREE slots are full"      CREDIT_ERROR = " credit for " | 
