green/red color for up/down votes on youtube videos
This commit is contained in:
parent
e752b60f6c
commit
bf6e4a0e40
1 changed files with 4 additions and 2 deletions
|
@ -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 = ""
|
||||
|
|
Loading…
Reference in a new issue