From 409fea01971c13eae62109f1b8afc01b94960beb Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 10 Nov 2018 21:13:49 -0800 Subject: Use post/redirect/get method to prevent form resubmission for comments --- youtube/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/comments.py') diff --git a/youtube/comments.py b/youtube/comments.py index fef04a9..fe89ac9 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -348,7 +348,7 @@ def get_comments_page(query_string): thumbnail = '/i.ytimg.com/vi/'+ metadata['video_id'] + '/mqdefault.jpg', ) comment_box = comment_box_template.substitute( - form_action= common.URL_ORIGIN + '/comments?ctoken=' + make_comment_ctoken(metadata['video_id'], sort=1).replace("=", "%3D"), + form_action= common.URL_ORIGIN + '/post_comment', video_id_input='''''', post_text='Post comment' ) -- cgit v1.2.3