From debcadcd403c6443e8b19a67ca5cf21e5917dda3 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 13 Oct 2011 21:19:06 +0200 Subject: [PATCH] Userscript add host to includes --- couchpotato/core/plugins/userscript/main.py | 2 +- couchpotato/core/plugins/userscript/template.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/userscript/main.py b/couchpotato/core/plugins/userscript/main.py index 89a9c64f..188790fd 100644 --- a/couchpotato/core/plugins/userscript/main.py +++ b/couchpotato/core/plugins/userscript/main.py @@ -24,7 +24,7 @@ class Userscript(Plugin): 'includes': fireEvent('userscript.get_includes', merge = True), 'excludes': fireEvent('userscript.get_excludes', merge = True), 'version': self.getVersion(), - 'host': '%s%suserscript.add_via_url/' % (request.host_url.rstrip('/'), url_for('api.index')), + 'host': '%s%suserscript/' % (request.host_url.rstrip('/'), url_for('api.index')), } return self.renderTemplate(__file__, 'template.js', **params) diff --git a/couchpotato/core/plugins/userscript/template.js b/couchpotato/core/plugins/userscript/template.js index 4b6e0f6d..7c1b0c2d 100644 --- a/couchpotato/core/plugins/userscript/template.js +++ b/couchpotato/core/plugins/userscript/template.js @@ -1,6 +1,8 @@ // ==UserScript== // @name CouchPotato UserScript // @description Add movies like a real CouchPotato + +// @include {{host}}* {% for include in includes %} // @include {{include}}{% endfor %} {% for exclude in excludes %}