Allow unknown keywords for all api calls. fix #1881

This commit is contained in:
Ruud committed 2013-06-24 21:21:49 +02:00
1 parent 9eea42b121
commit 5328f7fe69
17 files changed
+27 -27

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ class Notification(Provider):
def notify(self, message = '', data = {}, listener = None):
pass
def test(self):
def test(self, **kwargs):
test_type = self.testNotifyName()
+1 -1
View File
@@ -62,7 +62,7 @@ class CoreNotifier(Notification):
db.commit()
def markAsRead(self, ids = None):
def markAsRead(self, ids = None, **kwargs):
ids = splitString(ids) if ids else None
+1 -1
View File
@@ -113,7 +113,7 @@ class NMJ(Notification):
'success': False
}
def test(self):
def test(self, **kwargs):
return {
'success': self.addToLibrary()
}
+1 -1
View File
@@ -72,7 +72,7 @@ class Plex(Notification):
log.info('Plex notification to %s successful.', host)
return True
def test(self):
def test(self, **kwargs):
test_type = self.testNotifyName()
@@ -31,7 +31,7 @@ class Synoindex(Notification):
return True
def test(self):
def test(self, **kwargs):
return {
'success': os.path.isfile(self.index_path)
}