From 16f81de96856b714b991e1db025d10fc9dfe5909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 10 Aug 2021 18:14:05 -0500 Subject: [comments]: pep8 --- youtube/comments.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'youtube/comments.py') diff --git a/youtube/comments.py b/youtube/comments.py index 8eec789..127db01 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -8,9 +8,6 @@ import settings import json import base64 -import urllib -import re -import traceback import flask from flask import request @@ -34,7 +31,7 @@ def make_comment_ctoken(video_id, sort=0, offset=0, lc='', secret_key=''): secret_key = proto.as_bytes(secret_key) - page_info = proto.string(4,video_id) + proto.uint(6, sort) + page_info = proto.string(4, video_id) + proto.uint(6, sort) offset_information = proto.nested(4, page_info) + proto.uint(5, offset) if secret_key: offset_information = proto.string(1, secret_key) + offset_information -- cgit v1.2.3