mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
22 lines
518 B
Ruby
22 lines
518 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", "4:#{tmp}")
|
||
|
hash = hash_file("#{tmp}.idx") + "-" + hash_file("#{tmp}.sub")
|
||
|
arg = ""
|
||
|
1.upto(7) { |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
|
||
|
unlink_tmp_files
|
||
|
return hash
|
||
|
end
|
||
|
end
|
||
|
|