danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.

Home Page:https://danielmiessler.com/p/fabric-origin-story

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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

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:
image

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

We're fixing this in the next version of yt which is Go.