diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-28 21:16:49 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-28 21:16:49 +0100 |
commit | 8319b2fa98ee0408b4886ff474604e8199901f5c (patch) | |
tree | 60094df5cf5f0b64719aa2ee352c127ffbd5ebee /module/plugins | |
parent | [XFSAccount] Fix leech traffic detection (diff) | |
download | pyload-8319b2fa98ee0408b4886ff474604e8199901f5c.tar.xz |
[SimpleHoster] Fix deprecated method getFileInfo
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 95b52a017..d74da1301 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -126,7 +126,7 @@ def _getDirectLink(self, url): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "0.62" + __version__ = "0.63" __pattern__ = r'^unmatchable$' @@ -315,8 +315,7 @@ class SimpleHoster(Hoster): premium_only = 'error' in self.info and self.info['error'] == "premium-only" - info = self.getInfo(pyfile.url, self.html) - self._updateInfo(info) + self._updateInfo(self.getInfo(pyfile.url, self.html)) self.checkNameSize() @@ -408,7 +407,9 @@ class SimpleHoster(Hoster): #: Deprecated def getFileInfo(self): - return self.checkInfo() + self.info = {} + self.checkInfo() + return self.info def _updateInfo(self, info): |