mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 20:32:33 +00:00
16a9a7d1e6
Fix for bug 689.
21 lines
497 B
Ruby
21 lines
497 B
Ruby
#!/usr/bin/ruby -w
|
|
|
|
class T_206X_vobsub < Test
|
|
def description
|
|
return "mkvextract / VobSubs / in(MKV)"
|
|
end
|
|
|
|
def run
|
|
xtr_tracks("data/mkv/vobsubs.mks", "3:#{tmp}")
|
|
hash = hash_file("#{tmp}.idx") + "-" + hash_file("#{tmp}.sub")
|
|
arg = ""
|
|
0.upto(6) { |i| arg += "#{i}:#{tmp} " }
|
|
xtr_tracks("data/mkv/vobsubs.mks", arg)
|
|
hash += "-" + hash_file("#{tmp}.idx") + "-" + hash_file("#{tmp}.sub")
|
|
merge("#{tmp}.idx")
|
|
hash += "-" + hash_tmp
|
|
return hash
|
|
end
|
|
end
|
|
|