From ae4df05926e04a6cc77186220e63130370ef7897 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 25 Mar 2015 20:52:25 -0700 Subject: [PATCH] Weather: don't limit alerts output to 300 characters (it will be handled automatically via mores) From upstream commit reticulatingspline/Weather@5ed7db7a8e. --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 214d354..d9396c7 100644 --- a/plugin.py +++ b/plugin.py @@ -491,7 +491,7 @@ class Weather(callbacks.Plugin): if args['alerts']: # only look for alerts if there. if data['alerts']: # alerts is a list. it can also be empty. outdata['alerts'] = data['alerts'][0]['message'] # need to do some formatting below. - outdata['alerts'] = outdata['alerts'].replace('\n', ' ')[:300] # \n->' ' and max 300 chars. + outdata['alerts'] = outdata['alerts'].replace('\n', ' ') outdata['alerts'] = utils.str.normalizeWhitespace(outdata['alerts']) # fix pesky double whitespacing. else: # no alerts found (empty). outdata['alerts'] = "No alerts."