jdepoix / youtube-transcript-api

This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!
MIT License
2.55k stars 280 forks source link

It leaves spaces in some languages #195

Closed FurkanGozukara closed 1 year ago

FurkanGozukara commented 1 year ago

I have used the python code to translate files

video id m-UVVY_syP0

for example in Turkish file it has extra spaces which causes errors

image

vtt format

which format is best?

maybe you can auto remove such empty lines?

jdepoix commented 1 year ago

Hi @FurkanGozukara, when reporting bugs, please use the bug report template! It is hard to replicate without knowing what you are executing.

jdepoix commented 1 year ago

@FurkanGozukara Any updates here? Otherwise, I will close this issue as I can not replicate this.

jdepoix commented 1 year ago

Closed due to inactivity