green/red the whole of likes/dislikes, not just up/down symbols
This commit is contained in:
parent
5ed9185fb5
commit
c6f82d3866
1 changed files with 5 additions and 4 deletions
|
@ -46,10 +46,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
video_duration = content["duration"]
|
video_duration = content["duration"]
|
||||||
video_opinions = ""
|
video_opinions = ""
|
||||||
if video_likes and video_dislikes:
|
if video_likes and video_dislikes:
|
||||||
video_opinions = " (%s%s%s%s)" % (video_likes,
|
likes = utils.irc.colr("%s%s" % (video_likes, ARROW_UP),
|
||||||
utils.irc.color(ARROW_UP, utils.consts.GREEN),
|
utils.consts.GREEN)
|
||||||
utils.irc.color(ARROW_DOWN, utils.consts.RED),
|
dislikes = utils.irc.colr("%s%s" % (ARROW_DOWN, video_dislikes),
|
||||||
video_dislikes)
|
utils.consts.RED)
|
||||||
|
video_opinions = " (%s%s)" % (likes, dislikes)
|
||||||
|
|
||||||
match = re.match(REGEX_ISO8601, video_duration)
|
match = re.match(REGEX_ISO8601, video_duration)
|
||||||
video_duration = ""
|
video_duration = ""
|
||||||
|
|
Loading…
Reference in a new issue