Jelajahi Sumber

Add support for SSA subtitles

Zachary Kotlarek 14 tahun lalu
induk
melakukan
6bf91317f3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      encode.pl

+ 1 - 1
encode.pl

@@ -204,7 +204,7 @@ sub subOptions($) {
 
 
 	my %tracks = ();
 	my %tracks = ();
 	foreach my $track (@{ $scan->{'subtitle'} }) {
 	foreach my $track (@{ $scan->{'subtitle'} }) {
-		my ($language, $note, $iso, $text, $type) = $track->{'description'} =~ /^([^\(]+)(?:\s+\(([^\)]+)\))?\s+\(iso(\d+\-\d+)\:\s+\w\w\w\)\s+\((Text|Bitmap)\)\((CC|VOBSUB|PGS|UTF\-\d+)\)/i;
+		my ($language, $note, $iso, $text, $type) = $track->{'description'} =~ /^([^\(]+)(?:\s+\(([^\)]+)\))?\s+\(iso(\d+\-\d+)\:\s+\w\w\w\)\s+\((Text|Bitmap)\)\((CC|VOBSUB|PGS|SSA|UTF\-\d+)\)/i;
 		if (!defined($iso)) {
 		if (!defined($iso)) {
 			print STDERR 'Could not parse subtitle description: ' . $track->{'description'} . "\n";
 			print STDERR 'Could not parse subtitle description: ' . $track->{'description'} . "\n";