diff options
| author | 2014-12-22 16:45:04 +0100 | |
|---|---|---|
| committer | 2014-12-22 16:45:04 +0100 | |
| commit | 854efeb463bd98cb8e22f1f78f5ce97e6c0ab49f (patch) | |
| tree | 3128578d89f36fed0aa5ab7b3ede6311751dd7f8 /module/plugins/hoster/TurbobitNet.py | |
| parent | [UlozTo] Fix TRAFFIC_LEFT_PATTERN (diff) | |
| download | pyload-854efeb463bd98cb8e22f1f78f5ce97e6c0ab49f.tar.xz | |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/TurbobitNet.py')
| -rw-r--r-- | module/plugins/hoster/TurbobitNet.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py index 9d7dcc67b..258ec7d3e 100644 --- a/module/plugins/hoster/TurbobitNet.py +++ b/module/plugins/hoster/TurbobitNet.py @@ -35,7 +35,7 @@ class TurbobitNet(SimpleHoster):      SIZE_PATTERN = r'class="file-size">(?P<S>[\d.,]+) (?P<U>[\w^_]+)'      OFFLINE_PATTERN = r'<h2>File Not Found</h2>|html\(\'File (?:was )?not found' -    LINK_PATTERN = r'(?P<url>/download/redirect/[^"\']+)' +    LINK_PATTERN = r'(/download/redirect/[^"\']+)'      LIMIT_WAIT_PATTERN = r'<div id=\'timeout\'>(\d+)<'      CAPTCHA_PATTERN = r'<img alt="Captcha" src="(.+?)"' @@ -166,7 +166,7 @@ class TurbobitNet(SimpleHoster):          m = re.search(self.LINK_PATTERN, self.html)          if m is None:              self.error(_("Download link not found")) -        self.url = "http://turbobit.net" + m.group('url') +        self.url = "http://turbobit.net" + m.group(1)          self.download(self.url) | 
