Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating .vtt subtitle file #8

Open
themebon opened this issue Jan 20, 2021 · 0 comments
Open

Error creating .vtt subtitle file #8

themebon opened this issue Jan 20, 2021 · 0 comments

Comments

@themebon
Copy link

When i run this

`from ytcc.download import Download

video_id = 'w7ejDZ8SWv8'
download = Download()

Language is optional and default to "en"

YouTube uses "en","fr" not "en-US", "fr-FR"

captions = download.get_captions(video_id, 'en')

print(captions)`

This will throw error

Traceback (most recent call last): File "C:\Users\Raju\Desktop\YoutubeDL\main.py", line 7, in <module> captions = download.get_captions(video_id, 'en') File "C:\Users\Raju\Desktop\YoutubeDL\ytcc\download.py", line 37, in get_captions with open(file_path) as f: FileNotFoundError: [Errno 2] No such file or directory: 'subtitle_w7ejDZ8SWv8.en.vtt'

Can you please fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant