green/red color for up/down votes on youtube videos

This commit is contained in:
jesopo 2019-05-19 17:33:02 +01:00
parent e752b60f6c
commit bf6e4a0e40

View file

@ -46,8 +46,10 @@ class Module(ModuleManager.BaseModule):
video_duration = content["duration"]
video_opinions = ""
if video_likes and video_dislikes:
video_opinions = " (%s%s%s%s)" % (video_likes, ARROW_UP,
ARROW_DOWN, video_dislikes)
video_opinions = " (%s%s%s%s)" % (video_likes,
utils.irc.color(ARROW_UP, utils.consts.GREEN),
utils.irc.color(ARROW_DOWN, utils.consts.RED),
video_dislikes)
match = re.match(REGEX_ISO8601, video_duration)
video_duration = ""