2004-09-29 09:41:22 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
|
|
|
class T_050X_ass < Test
|
|
|
|
def description
|
|
|
|
return "mkvextract / ASS subtitles / out(ASS)"
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
2017-03-20 12:28:21 +00:00
|
|
|
my_hash = hash_file("data/subtitles/ssa-ass/11.Magyar.ass")
|
2004-09-29 09:41:22 +00:00
|
|
|
my_tmp = tmp
|
2017-03-20 12:28:21 +00:00
|
|
|
merge("--sub-charset 0:ISO-8859-1 data/subtitles/ssa-ass/11.Magyar.ass")
|
2004-09-29 09:41:22 +00:00
|
|
|
@tmp = nil
|
2011-12-24 16:52:18 +00:00
|
|
|
xtr_tracks(my_tmp, "-c ISO-8859-1 0:#{tmp}")
|
2004-09-29 09:41:22 +00:00
|
|
|
File.unlink(my_tmp)
|
|
|
|
return my_hash + "-" + hash_tmp
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|