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

how to create a new line? #55

Closed
1c7 opened this issue Jun 20, 2014 · 2 comments
Closed

how to create a new line? #55

1c7 opened this issue Jun 20, 2014 · 2 comments

Comments

@1c7
Copy link

1c7 commented Jun 20, 2014

maybe you can add some method like:

subs.addAfter(LineNumber, StartTime, EndTime, SubtitleContent)
subs.addBefore(LineNumber, StartTime, EndTime, SubtitleContent)

subs.addAfterLastLine(StartTime, EndTime, SubtitleContent)
subs.addAfterLastLine(duringtime, SubtitleContent)

@byroot
Copy link
Owner

byroot commented Jun 21, 2014

Well, srt files are sortable. So if you want to add a new subtitle you can just append it with the good timestamps and then sort the file before writing it.

Adding a method to insert in order might be a good idea though, I'll think about it.

@1c7
Copy link
Author

1c7 commented Jun 22, 2014

THANK YOU

@byroot byroot closed this as completed Sep 10, 2014
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

2 participants