summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-14 19:11:26 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-14 19:11:26 +0200
commitbae390c536f643932581b6be00c11cc32e84c171 (patch)
tree15b0500716ffdf63a4b1928cf3b1806fc78b2509
parentUpdate Crypter (diff)
downloadpyload-bae390c536f643932581b6be00c11cc32e84c171.tar.xz
Fix https://github.com/pyload/pyload/issues/1492 and https://github.com/pyload/pyload/issues/1493
-rw-r--r--module/plugins/internal/Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index aef8fd450..bbf3191c3 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -61,7 +61,7 @@ class Base(object):
msg = " | ".join((fs_encode(a) if isinstance(a, unicode) else #@NOTE: `fs_encode` -> `encode` in 0.4.10
str(a)).strip() for a in args if a)
log("%(plugin)s[%(id)s]: %(msg)s" % {'plugin': self.__name__,
- 'id' : self.pyfile.id,
+ 'id' : self.pyfile.id if hasattr(self, 'pyfile') else "",
'msg' : msg or _(level.upper() + " MARK")})
@@ -140,7 +140,7 @@ class Plugin(Base):
Overwrite `process` / `decrypt` in your subclassed plugin.
"""
__name__ = "Plugin"
- __version__ = "0.06"
+ __version__ = "0.07"
__pattern__ = None
__type__ = "hoster"
__config__ = [("name", "type", "desc", "default")]