Skip to content

Add Download Subtitles#10

Open
matheuscr30 wants to merge 2 commits intoOpenGenus:masterfrom
matheuscr30:master
Open

Add Download Subtitles#10
matheuscr30 wants to merge 2 commits intoOpenGenus:masterfrom
matheuscr30:master

Conversation

@matheuscr30
Copy link

No description provided.

video = yt.filter('mp4')[-1]
video.download(os.getcwd())
#This download the video and download the subtitles and convert to srt
os.system('youtube-dl -f mp4 --write-auto-sub --convert-subtitles srt ' + url)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will be the filename for the video and subtitle file?
Ideally, it should be consistent such as 1.mp4 and 1.srt

Copy link
Contributor

@bhaveshAn bhaveshAn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

3 participants