aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-03-25 13:15:54 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-03-25 13:15:54 -0700
commit0ecf3d08be9206b1067fa37301fb187256dc17ab (patch)
treee3ee1b96d3e02078cc55e0e6a996ba0e634c5de8 /youtube
parenta33b71820c22892157612baeb47575e8dda5fbf4 (diff)
downloadyt-local-0ecf3d08be9206b1067fa37301fb187256dc17ab.tar.lz
yt-local-0ecf3d08be9206b1067fa37301fb187256dc17ab.tar.xz
yt-local-0ecf3d08be9206b1067fa37301fb187256dc17ab.zip
Fix error with channel searches with non-ascii characters
Diffstat (limited to 'youtube')
-rw-r--r--youtube/proto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/proto.py b/youtube/proto.py
index 004375a..d966455 100644
--- a/youtube/proto.py
+++ b/youtube/proto.py
@@ -60,7 +60,7 @@ def unpadded_b64encode(data):
def as_bytes(value):
if isinstance(value, str):
- return value.encode('ascii')
+ return value.encode('utf-8')
return value