diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-03 16:57:55 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-03 16:57:55 +0100 |
commit | 03f3b86f500c495932fd118b54569d92f700847c (patch) | |
tree | ad3632f59e0889c7485f2261113aef3da983b4dc /module/plugins/internal/SimpleHoster.py | |
parent | [SimpleHoster] Fix file_info stuff (diff) | |
download | pyload-03f3b86f500c495932fd118b54569d92f700847c.tar.xz |
Code cosmetics about file_info and other stuff
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 1555151a5..1f673a5c2 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -155,14 +155,14 @@ def parseFileInfo(self, url="", html=""): if not hasattr(self, "info"): self.info = {} - try: #: Remove try-except statement in 0.4.10 + try: self.logDebug(_("File info (before update): %s") % self.info) except: pass self.info.update(info) - try: #: Remove try-except statement in 0.4.10 + try: self.logDebug(_("File info (after update): %s") % self.info) except: pass @@ -255,7 +255,7 @@ class SimpleHoster(Hoster): FORCE_CHECK_TRAFFIC = False #: Set to True to force checking traffic left for premium account - def init(): + def init(self): self.info = {} @@ -330,11 +330,11 @@ class SimpleHoster(Hoster): else: self.pyfile.name = self.info['name'] = html_unescape(urlparse(url).path.split("/")[-1]) - if status == 1: + if status is 1: self.offline() - elif status == 6: + elif status is 6: self.tempOffline() - elif status != 2: + elif status is not 2: self.error(_("File info: %s") % self.info) if size: |