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

Any way to download the subtitles without the times? #20272

Closed
moshpirit opened this issue Mar 7, 2019 · 1 comment
Closed

Any way to download the subtitles without the times? #20272

moshpirit opened this issue Mar 7, 2019 · 1 comment

Comments

@moshpirit
Copy link

@moshpirit moshpirit commented Mar 7, 2019

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

I'd like to know if there could be any possible way to get just the text from the subtitles, so instead of getting:

00:00:16.010 --> 00:00:16.539
caption

I would like to get just caption

@Gosokan
Copy link

@Gosokan Gosokan commented Mar 8, 2019

It's possible using regex to replace string of text. You can use this tools after subtitle downloaded:
sed (any linux distribution) or
notepad++ (windows)

Example in sed to replacing timestamp:
sed -E 's/[0-9]{2}:[0-9]{2}:[0-9]{2}//' subtitlefile.srt

Of course this will leave -->, so you can using sed again to remove -->:
sed -E 's/-->//' subtitlefile.srt

@dstftw dstftw closed this Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.