From b3ba7328542b3ddad5d296849c971717187d1f4f Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 10 Mar 2012 17:35:19 +0100 Subject: [PATCH] Don't ask password on userscript iframe --- couchpotato/core/plugins/userscript/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/userscript/main.py b/couchpotato/core/plugins/userscript/main.py index ae3447aa..98c959bb 100644 --- a/couchpotato/core/plugins/userscript/main.py +++ b/couchpotato/core/plugins/userscript/main.py @@ -8,6 +8,7 @@ from couchpotato.core.plugins.base import Plugin from couchpotato.environment import Env from flask.globals import request from flask.helpers import url_for +from flask.templating import render_template import os log = CPLog(__name__) @@ -51,7 +52,7 @@ class Userscript(Plugin): return version def iFrame(self): - return index() + return render_template('index.html', sep = os.sep, fireEvent = fireEvent, env = Env) def getViaUrl(self):