diff --git a/couchpotato/core/plugins/userscript/main.py b/couchpotato/core/plugins/userscript/main.py index 89a9c64..188790f 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 4b6e0f6..7c1b0c2 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 %}