From 99f2e9c3d2fbab02b0582dc8dcf9ed05df7789a6 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Wed, 25 Sep 2024 01:55:16 +0000 Subject: [PATCH] Update clipboard plugin --- clipboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clipboard.py b/clipboard.py index 5031e67..4414961 100644 --- a/clipboard.py +++ b/clipboard.py @@ -22,11 +22,11 @@ from sshare.plugin.source import Raw plugin_type = { "source", "feedback" } activate = { - "source": { "type" }, + "source": { "extension" }, "feedback": { "to_clipboard" }, } args = { - "type": Argument( + "extension": Argument( name="paste", nargs="?", const=Flag, @@ -41,7 +41,7 @@ args = { def get_source(): logger.info("Uploading contents of clipboard") - return Raw(config.type, pyclip.paste()) + return Raw("clipboard", config.extension, pyclip.paste()) def give_feedback(location): pyclip.copy(location)