2005-02-11 22:20:18 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
2021-07-07 14:06:32 +00:00
|
|
|
class T_0206X_vobsub < Test
|
2005-02-11 22:20:18 +00:00
|
|
|
def description
|
|
|
|
return "mkvextract / VobSubs / in(MKV)"
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
2011-12-24 16:52:18 +00:00
|
|
|
xtr_tracks("data/mkv/vobsubs.mks", "3:#{tmp}")
|
2005-02-11 22:20:18 +00:00
|
|
|
hash = hash_file("#{tmp}.idx") + "-" + hash_file("#{tmp}.sub")
|
|
|
|
arg = ""
|
2011-12-24 16:52:18 +00:00
|
|
|
0.upto(6) { |i| arg += "#{i}:#{tmp} " }
|
2005-02-11 22:20:18 +00:00
|
|
|
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
|
|
|
|
|