From 20f20389ceb846c2934850faf292373fd3d6c86d Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 12 Oct 2011 15:55:43 +0200 Subject: [PATCH] Userscript iframe base --- couchpotato/core/plugins/userscript/iframe.html | 15 +++++++++++++++ couchpotato/core/plugins/userscript/main.py | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 couchpotato/core/plugins/userscript/iframe.html diff --git a/couchpotato/core/plugins/userscript/iframe.html b/couchpotato/core/plugins/userscript/iframe.html new file mode 100644 index 00000000..322407fb --- /dev/null +++ b/couchpotato/core/plugins/userscript/iframe.html @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/couchpotato/core/plugins/userscript/main.py b/couchpotato/core/plugins/userscript/main.py index 0ceda58c..7bfec90e 100644 --- a/couchpotato/core/plugins/userscript/main.py +++ b/couchpotato/core/plugins/userscript/main.py @@ -39,6 +39,10 @@ class Extension(Plugin): return version def addViaUrl(self): + url = getParam('url') + return self.renderTemplate(__file__, 'iframe.html', url = url) + + def getViaUrl(self): url = getParam('url')