Use @match in userscript

This commit is contained in:
Ruud
2012-01-22 14:03:06 +01:00
parent ab944b6611
commit 3497c3d1fa
2 changed files with 3 additions and 3 deletions
@@ -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('/')}}*
@@ -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)