diff --git a/youtube/comments.css b/youtube/comments.css index baa8ac7..866551e 100644 --- a/youtube/comments.css +++ b/youtube/comments.css @@ -98,10 +98,11 @@ word-wrap: break-word; } -.comment time{ +.comment .permalink{ grid-column: 3; grid-row: 1; white-space: nowrap; + color: black; } diff --git a/youtube/comments.py b/youtube/comments.py index 1d96545..efa1b26 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -26,7 +26,9 @@ $avatar
$author - + + + $text $likes @@ -277,6 +279,8 @@ def get_comments_html(comments): action_buttons = '''Delete''' else: action_buttons = '' + + permalink = URL_ORIGIN + '/watch?v=' + comment['video_id'] + '&lc=' + comment['comment_id'] html_result += comment_template.substitute( author=comment['author'], author_url = URL_ORIGIN + comment['author_url'], @@ -287,6 +291,7 @@ def get_comments_html(comments): datetime = '', #TODO replies = replies, action_buttons = action_buttons, + permalink = permalink, ) return html_result