From 960076c8394fd99f293075dcdcf911a4759baa9f Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Wed, 11 Dec 2019 11:29:04 -0500 Subject: [PATCH] add twitchLogo config for twitch_logo in template --- SpiffyTitles/config.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SpiffyTitles/config.py b/SpiffyTitles/config.py index 7fca488..d43833c 100644 --- a/SpiffyTitles/config.py +++ b/SpiffyTitles/config.py @@ -71,10 +71,14 @@ conf.registerChannelValue(SpiffyTitles, 'defaultTitleTemplate', #Twitch API Key conf.registerGlobalValue(SpiffyTitles, 'twitchAPI', registry.String('', _("""Twitch API Client_ID"""))) - + +# Twitch Logo +conf.registerChannelValue(SpiffyTitles, 'twitchLogo', + registry.String("\x030,6šŸ’¬twitch", _("""Logo used with {{twitch_logo}} in template"""))) + # Twitch template conf.registerChannelValue(SpiffyTitles, 'twitchTemplate', - registry.String("^ {{display_name}} {%if live%}:: {{title}} :: (LIVE) {%if game_name%}[{{game_name}}] {%endif%}:: Started: {{started_at}} :: Stream Viewers: {{stream_viewers}} {%endif%}{%if description%}:: {{description}} {%endif%}:: Total Viewers: {{total_viewers}}", _("""Twitch title template"""))) + registry.String("^ {{twitch_logo}} {{display_name}} {%if live%}:: {{title}} :: (LIVE) {%if game_name%}[{{game_name}}] {%endif%}:: Started: {{started_at}} :: Stream Viewers: {{stream_viewers}} {%endif%}{%if description%}:: {{description}} {%endif%}:: Total Viewers: {{total_viewers}}", _("""Twitch title template"""))) #OMDB API Key conf.registerGlobalValue(SpiffyTitles, 'omdbAPI', @@ -219,3 +223,4 @@ conf.registerChannelValue(SpiffyTitles.reddit, 'userTemplate', conf.registerChannelValue(SpiffyTitles.reddit, 'maxChars', registry.Integer(400, _("""Length of response (title/extract will be cut to fit)."""))) +