diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-10 18:14:05 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-10 18:14:05 -0500 |
commit | 16f81de96856b714b991e1db025d10fc9dfe5909 (patch) | |
tree | 25ce0f1456e54a2606a53b06ddd04c0646f4e146 | |
parent | 0e896cbf3491fe5b866c8a9d632a2a9171639a13 (diff) | |
download | yt-local-16f81de96856b714b991e1db025d10fc9dfe5909.tar.lz yt-local-16f81de96856b714b991e1db025d10fc9dfe5909.tar.xz yt-local-16f81de96856b714b991e1db025d10fc9dfe5909.zip |
[comments]: pep8
-rw-r--r-- | youtube/comments.py | 5 |
1 files changed, 1 insertions, 4 deletions
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 |