diff options
author | Astound <kirito@disroot.org> | 2024-01-22 06:29:42 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-01-22 06:29:42 +0800 |
commit | 5f3b90ad45993f99bf2813ef2fefaa3a59a2694f (patch) | |
tree | a3ae5002a58935d691148bbb85d6d509a9d7c58c /youtube/proto.py | |
parent | 2463af768579e3bc52f39cfdd55b163d797289bc (diff) | |
download | yt-local-5f3b90ad45993f99bf2813ef2fefaa3a59a2694f.tar.lz yt-local-5f3b90ad45993f99bf2813ef2fefaa3a59a2694f.tar.xz yt-local-5f3b90ad45993f99bf2813ef2fefaa3a59a2694f.zip |
Fix channel about tab
Diffstat (limited to 'youtube/proto.py')
-rw-r--r-- | youtube/proto.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/youtube/proto.py b/youtube/proto.py index d8b1fcd..924e983 100644 --- a/youtube/proto.py +++ b/youtube/proto.py @@ -141,6 +141,17 @@ base64_enc_funcs = { def _make_protobuf(data): + ''' + Input: Recursive list of protobuf objects or base-64 encodings + Output: Protobuf bytestring + Each protobuf object takes the form [wire_type, field_number, field_data] + If a string protobuf has a list/tuple of length 2, this has the form + (base64 type, data) + The base64 types are + - base64 means a base64 encode with equals sign paddings + - base64s means a base64 encode without padding + - base64p means a url base64 encode with equals signs replaced with %3D + ''' # must be dict mapping field_number to [wire_type, value] if isinstance(data, dict): new_data = [] |