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')