mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
323d2f10ab
Normally mkvextract uses the first chapter name found for each atom when outputting simple chapter format. With a new option the user can select the chapter names to extract by their language. Implements the feature part of #1610.
14 lines
415 B
Ruby
Executable File
14 lines
415 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
# T_531simple_chapter_extraction
|
|
describe "mkvextract / chapters in simple format including language selection"
|
|
|
|
%w{love phantom}.each do |file|
|
|
[ "", "--simple-language eng", "--simple-language spa" ].each do |language|
|
|
test "extract from #{file} #{language}" do
|
|
extract "data/chapters/#{file}.mkv --simple #{language} > #{tmp}", :mode => :chapters
|
|
hash_tmp
|
|
end
|
|
end
|
|
end
|