[Bug]: when use yt to fetch the transcript of a video with non-latin languages like Chinese or Japanese, it will generate gibberish
CaeChao opened this issue · comments
CaeChao commented
What happened?
I was doing
yt --transcript --lang 'zh-Hant' $(youtube_url)
,
I was expecting to get the Chinese transcript from that video,
Instead I got gibberish generated:
I think it is related to this line(yt.py line 106):
print(transcript_text.encode('utf-8').decode('unicode-escape'))
Version check
- Yes I was.
Relevant log output
No response
Relevant screenshots (optional)
No response
Daniel Miessler commented
We're fixing this in the next version of yt which is Go.