diff options
| author | 2015-01-24 03:50:33 +0100 | |
|---|---|---|
| committer | 2015-01-24 03:50:33 +0100 | |
| commit | 031d86706aa13270793e31c21ad3f386ca62752b (patch) | |
| tree | 3697b68decfe59321b1d6e2abdb8c0a20899502c /module/plugins/hoster/FshareVn.py | |
| parent | [CaptchaService] Fix typo (diff) | |
| download | pyload-031d86706aa13270793e31c21ad3f386ca62752b.tar.xz | |
Spare code improvements
Diffstat (limited to 'module/plugins/hoster/FshareVn.py')
| -rw-r--r-- | module/plugins/hoster/FshareVn.py | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/module/plugins/hoster/FshareVn.py b/module/plugins/hoster/FshareVn.py index 872511afc..4912974ad 100644 --- a/module/plugins/hoster/FshareVn.py +++ b/module/plugins/hoster/FshareVn.py @@ -25,7 +25,7 @@ def doubleDecode(m):  class FshareVn(SimpleHoster):      __name__    = "FshareVn"      __type__    = "hoster" -    __version__ = "0.19" +    __version__ = "0.20"      __pattern__ = r'http://(?:www\.)?fshare\.vn/file/.+' @@ -58,7 +58,7 @@ class FshareVn(SimpleHoster):          self.checkErrors()          action, inputs = self.parseHtmlForm('frm_download') -        self.url = urljoin(pyfile.url, action) +        url = urljoin(pyfile.url, action)          if not inputs:              self.error(_("No FORM")) @@ -69,7 +69,7 @@ class FshareVn(SimpleHoster):              if password:                  self.logInfo(_("Password protected link, trying ") + password)                  inputs['link_file_pwd_dl'] = password -                self.html = self.load(self.url, post=inputs, decode=True) +                self.html = self.load(url, post=inputs, decode=True)                  if 'name="link_file_pwd_dl"' in self.html:                      self.fail(_("Incorrect password")) @@ -77,7 +77,7 @@ class FshareVn(SimpleHoster):                  self.fail(_("No password found"))          else: -            self.html = self.load(self.url, post=inputs, decode=True) +            self.html = self.load(url, post=inputs, decode=True)          self.checkErrors() @@ -87,11 +87,9 @@ class FshareVn(SimpleHoster):          m = re.search(self.LINK_FREE_PATTERN, self.html)          if m is None:              self.error(_("LINK_FREE_PATTERN not found")) -        self.url = m.group(1) -        self.logDebug("FREE DL URL: %s" % self.url) - +         +        self.link = m.group(1)          self.wait() -        self.download(self.url)      def checkErrors(self): | 
