Allow unknown keywords for all api calls. fix #1881
This commit is contained in:
1 parent
9eea42b121
commit
5328f7fe69
17 files changed
+27
-27
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ class NMJ(Notification):
|
||||
'success': False
|
||||
}
|
||||
|
||||
def test(self):
|
||||
def test(self, **kwargs):
|
||||
return {
|
||||
'success': self.addToLibrary()
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user