From 73fd3f37cee0a292b540e8d602fba09697009655 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 5 Aug 2019 10:48:16 +0100 Subject: Allow url shorteners to be specified per-channel --- modules/title.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/title.py') diff --git a/modules/title.py b/modules/title.py index b585e687..703ea476 100644 --- a/modules/title.py +++ b/modules/title.py @@ -37,7 +37,8 @@ class Module(ModuleManager.BaseModule): "\r", "").replace(" ", " ").strip() if channel.get_setting("title-shorten", False): - short_url = self.exports.get_one("shorturl")(server, url) + short_url = self.exports.get_one("shorturl")(server, url, + context=channel) return "%s - %s" % (title, short_url) return title else: -- cgit v1.3.1-10-gc9f91