aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliuyahui <liuyh.fnst@fujitsu.com>2021-06-03 17:12:18 +0800
committerliuyahui <liuyh.fnst@fujitsu.com>2021-06-03 17:12:18 +0800
commitbb1b479f3feab48ae106527f6de4824355db4b36 (patch)
tree04daa4aa9651a99f95a59e385e4483f22d1bdc45
parent1b2a1a37f2f768417055296563c2d34bf4855e8b (diff)
resolve unsubscribe api bug of the mediascanner service module from pyagl
Bug-AGL: SPEC-3946 Signed-off-by: liuyahui <liuyh.fnst@fujitsu.com> Change-Id: Ia67a2cba88ce724fc02880b7506c7e7955487508
-rw-r--r--pyagl/services/mediascanner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyagl/services/mediascanner.py b/pyagl/services/mediascanner.py
index 6281834..3c3fb13 100644
--- a/pyagl/services/mediascanner.py
+++ b/pyagl/services/mediascanner.py
@@ -57,8 +57,8 @@ async def main(loop):
print(r)
if args.unsubscribe:
- for event in args.subscribe:
- msgid = await svc.subscribe(event)
+ for event in args.unsubscribe:
+ msgid = await svc.unsubscribe(event)
print(f"Subscribed for event {event} with messageid {msgid}")
r = await svc.afbresponse()
print(r)