diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index a3d5628..73a2c30 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -78,7 +78,7 @@ class Plugin(object): self.makeDir(os.path.dirname(path)) try: - f = open(path, 'w' if not binary else 'wb') + f = open(path, 'w+' if not binary else 'w+b') f.write(content) f.close() os.chmod(path, Env.getPermission('file'))