File: test-245srt_timecode_formats.rb

package info (click to toggle)
mkvtoolnix 2.7.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,588 kB
  • ctags: 7,821
  • sloc: cpp: 58,096; ansic: 5,764; sh: 3,037; ruby: 1,458; makefile: 635; perl: 249; xml: 161
file content (20 lines) | stat: -rw-r--r-- 407 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/ruby -w

class T_245srt_timecode_formats < Test
  def description
    return "mkvmerge / SRT files with various timecode formats (shortened, spaces etc) / in(SRT)"
  end

  def run
    hashes = Array.new

    merge("data/textsubs/shortened_timecodes.srt")
    hashes << hash_tmp

    merge("data/textsubs/timecodes_with_spaces.srt")
    hashes << hash_tmp

    return hashes.join('-')
  end
end