diff options
-rw-r--r-- | pyagl/services/mediascanner.py | 4 |
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) |