From bb1b479f3feab48ae106527f6de4824355db4b36 Mon Sep 17 00:00:00 2001 From: liuyahui Date: Thu, 3 Jun 2021 17:12:18 +0800 Subject: resolve unsubscribe api bug of the mediascanner service module from pyagl Bug-AGL: SPEC-3946 Signed-off-by: liuyahui Change-Id: Ia67a2cba88ce724fc02880b7506c7e7955487508 --- pyagl/services/mediascanner.py | 4 ++-- 1 file 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) -- cgit 1.2.3-korg