Try and get imdb url before sending it to CP

This commit is contained in:
Ruud
2012-03-05 18:54:32 +01:00
parent 2f69a0694c
commit 84246a6799
2 changed files with 22 additions and 6 deletions
+3 -1
View File
@@ -15,6 +15,8 @@ log = CPLog(__name__)
class Userscript(Plugin):
version = 1
def __init__(self):
addApiView('userscript.get/<path:filename>', self.getUserScript, static = True)
addApiView('userscript', self.iFrame)
@@ -42,7 +44,7 @@ class Userscript(Plugin):
versions = fireEvent('userscript.get_provider_version')
version = 0
version = self.version
for v in versions:
version += v