Subtitle shifting challenge from RubyLearning
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autotest
bin
examples
lib
samples
spec
.document
.gitignore
.yardoc
LICENSE
README.markdown
Rakefile
VERSION
subshifter.gemspec

README.markdown

Subtitle Shifter

This is just a simple project for the RubyLearning challenge. The task is to allow a commandline script to shift the timecodes in an SRT file by an arbitrary number of seconds and milliseconds.

I went a little crazy with it and created a specific Timecode class for all the operations on the timecodes and a Subshifter class to deal with the file operations.

subshifter -o add -t "10,105" --input-file FILENAME --output-file FILENAME

There's a sample srt file in the samples directory.