summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-08 15:14:24 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-08 15:14:24 +0200
commit71ccba71175238b62845b88fc707ff3d5432c56c (patch)
treedb743ac064409319de16e79923517e547abb2a70 /module/plugins/internal
parentRestore Plugin.py under its original directory (diff)
downloadpyload-71ccba71175238b62845b88fc707ff3d5432c56c.tar.xz
Fix https://github.com/pyload/pyload/issues/1464
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/SimpleHoster.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index f69669341..38e2641c9 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -239,7 +239,7 @@ def secondsToMidnight(gmt=0):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "1.60"
+ __version__ = "1.61"
__pattern__ = r'^unmatchable$'
__config__ = [("use_premium", "bool", "Use premium account if available" , True),
@@ -423,13 +423,13 @@ class SimpleHoster(Hoster):
#@TODO: Move to Hoster in 0.4.10
def _log(self, type, args):
- msg = " | ".join((fs_encode(a) if type(a) is unicode else #@NOTE: `fs_encode` -> `encode` in 0.4.10
- decode(a) if type(a) is str else
- str(a)).strip() for a in args if a)
+ msg = " | ".join((fs_encode(a) if isinstance(a, unicode) else
+ decode(a) if isinstance(a, str) else
+ str(a)).strip() for a in args if a) #@NOTE: `fs_encode` -> `encode` in 0.4.10
logger = getattr(self.core.log, type)
- logger("%(plugin)s[%(id)s]: %(msg)s" % {'plugin' : self.__name__,
- 'id' : self.pyfile.id,
- 'msg' : msg or _(type.upper() + " MARK")})
+ logger("%(plugin)s[%(id)s]: %(msg)s" % {'plugin': self.__name__,
+ 'id' : self.pyfile.id,
+ 'msg' : msg or _(type.upper() + " MARK")})
#@TODO: Move to Hoster in 0.4.10