diff options
Diffstat (limited to 'youtube/comments.py')
-rw-r--r-- | youtube/comments.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube/comments.py b/youtube/comments.py index efa1b26..4860636 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -356,8 +356,9 @@ $options $video_id_input <button type="submit" class="post-comment-button">$post_text</button> </form>''') -def get_comments_page(query_string): - parameters = urllib.parse.parse_qs(query_string) +def get_comments_page(env, start_response): + start_response('200 OK', [('Content-type','text/html'),] ) + parameters = env['fields'] ctoken = default_multi_get(parameters, 'ctoken', 0, default='') replies = False if not ctoken: @@ -419,4 +420,4 @@ def get_comments_page(query_string): header = common.get_header(), comments_area = comments_area, page_title = page_title, - )
\ No newline at end of file + ).encode('utf-8')
\ No newline at end of file |