mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 12:53:50 +00:00
15 lines
415 B
Ruby
15 lines
415 B
Ruby
|
#!/usr/bin/ruby -w
|
||
|
|
||
|
# T_692splitting_chapter_name_in_file_name
|
||
|
describe "mkvmerge / splitting & using %c for chapter names in destination file names"
|
||
|
|
||
|
test "splitting" do
|
||
|
merge "--chapters data/chapters/shortchaps-utf8.txt data/avi/v.avi --split chapters:all", :output => "#{tmp}-zZzZz-%03d-%c.mkv"
|
||
|
|
||
|
Dir.glob("#{tmp}-*mkv").
|
||
|
map { |name| name.gsub(%r{.*-zZzZz-}, '') }.
|
||
|
sort.
|
||
|
join('+').
|
||
|
md5
|
||
|
end
|