summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-08-26 14:32:53 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-08-26 14:32:53 +0200
commit45feced4c09605dc5e80c4d96e2a4c5e9ee416d4 (patch)
treebb6623b6effd1999bdc31d293d7ff75155629ddc /module
parentSpare plugin updates (diff)
downloadpyload-45feced4c09605dc5e80c4d96e2a4c5e9ee416d4.tar.xz
Update Plugin.py
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/Plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index 7b45c40a8..8bc5d4a65 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -7,6 +7,7 @@ import inspect
import os
import re
import urllib
+import sys
if os.name != "nt":
import grp
@@ -146,7 +147,7 @@ def chunks(iterable, size):
class Plugin(object):
__name__ = "Plugin"
__type__ = "hoster"
- __version__ = "0.30"
+ __version__ = "0.32"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -345,7 +346,7 @@ class Plugin(object):
#@TODO: Move to network in 0.4.10
if isinstance(decode, basestring):
- res = decode(res, decode)
+ res = sys.modules[__name__].decode(res, decode) #@TODO: See #1787, use utils.decode() in 0.4.10
if self.pyload.debug:
frame = inspect.currentframe()