fix emby scripterx插件参数解析
This commit is contained in:
parent
fdd922227e
commit
19b703f9cc
@ -40,7 +40,15 @@ class EmbyModule(_ModuleBase):
|
||||
:param args: 请求参数
|
||||
:return: 字典,解析为消息时需要包含:title、text、image
|
||||
"""
|
||||
return self.emby.get_webhook_message(form.get("data"))
|
||||
if form.get("data"):
|
||||
result = form.get("data")
|
||||
else:
|
||||
pairs = args.split("&")
|
||||
result = {}
|
||||
for pair in pairs:
|
||||
key, value = pair.split("=")
|
||||
result[key] = value
|
||||
return self.emby.get_webhook_message(result)
|
||||
|
||||
def media_exists(self, mediainfo: MediaInfo, itemid: str = None) -> Optional[ExistMediaInfo]:
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user