diff options
Diffstat (limited to 'youtube/proto.py')
-rw-r--r-- | youtube/proto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/proto.py b/youtube/proto.py index 933ac92..d8b1fcd 100644 --- a/youtube/proto.py +++ b/youtube/proto.py @@ -149,8 +149,8 @@ def _make_protobuf(data): data = new_data if isinstance(data, str): return data.encode('utf-8') - elif len(data) == 2 and data[0] in base64_enc_funcs: - return base64_enc_funcs[data[0]](make_proto(data[1])) + elif len(data) == 2 and data[0] in list(base64_enc_funcs.keys()): + return base64_enc_funcs[data[0]](_make_protobuf(data[1])) elif isinstance(data, list): result = b'' for field in data: |