From cf29c371120929c53490d6017d5f43cf04f3cbc9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 May 2019 10:28:14 +0100 Subject: Add usage examples for all settings --- modules/title.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/title.py') diff --git a/modules/title.py b/modules/title.py index 73eba563..075ae6c5 100644 --- a/modules/title.py +++ b/modules/title.py @@ -3,14 +3,14 @@ from src import EventManager, ModuleManager, utils @utils.export("channelset", {"setting": "auto-title", "help": "Disable/Enable automatically getting info titles from URLs", - "validate": utils.bool_or_none}) + "validate": utils.bool_or_none, "example": "on"}) @utils.export("channelset", {"setting": "title-shorten", "help": "Enable/disable shortening URLs when getting their title", - "validate": utils.bool_or_none}) + "validate": utils.bool_or_none, "example": "on"}) @utils.export("channelset", {"setting": "auto-title-first", "help": ("Enable/disable showing who first posted a URL that was " "auto-titled"), - "validate": utils.bool_or_none}) + "validate": utils.bool_or_none, "exaple": "on"}) class Module(ModuleManager.BaseModule): def _url_hash(self, url): return "sha256:%s" % hashlib.sha256(url.lower().encode("utf8") -- cgit v1.3.1-10-gc9f91