From 3497c3d1fadf573a1e9b55db136c07dd7c856d7a Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 22 Jan 2012 14:03:06 +0100 Subject: [PATCH] Use @match in userscript --- couchpotato/core/plugins/userscript/template.js | 4 ++-- couchpotato/core/providers/userscript/imdb/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/userscript/template.js b/couchpotato/core/plugins/userscript/template.js index 7dbd4ea3..6244afb5 100644 --- a/couchpotato/core/plugins/userscript/template.js +++ b/couchpotato/core/plugins/userscript/template.js @@ -3,9 +3,9 @@ // @description Add movies like a real CouchPotato // @version {{version}} -// @include {{host}}* +// @match {{host}}* {% for include in includes %} -// @include {{include}}{% endfor %} +// @match {{include}}{% endfor %} {% for exclude in excludes %} // @exclude {{exclude}}{% endfor %} // @exclude {{host}}{{api.rstrip('/')}}* diff --git a/couchpotato/core/providers/userscript/imdb/main.py b/couchpotato/core/providers/userscript/imdb/main.py index 5e5ae91c..24278b1a 100644 --- a/couchpotato/core/providers/userscript/imdb/main.py +++ b/couchpotato/core/providers/userscript/imdb/main.py @@ -5,7 +5,7 @@ from couchpotato.core.providers.userscript.base import UserscriptBase class IMDB(UserscriptBase): - includes = ['http*://*.imdb.com/title/tt*', 'http*://imdb.com/title/tt*'] + includes = ['*://*.imdb.com/title/tt*', '*://imdb.com/title/tt*'] def getMovie(self, url): return fireEvent('movie.info', identifier = getImdb(url), merge = True)