projects
/
HTML5TV.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix regex
[HTML5TV.git]
/
bin
/
sync2yaml.pl
diff --git
a/bin/sync2yaml.pl
b/bin/sync2yaml.pl
index
bb0e393
..
d68ae00
100755
(executable)
--- a/
bin/sync2yaml.pl
+++ b/
bin/sync2yaml.pl
@@
-17,6
+17,8
@@
while(<>) {
my $t = $1 * 60 + $2;
$nr++;
push @subtitles, [ $t, $t+3, "[$nr] $3" ];
+ } elsif ( m{(\d+\.\d+)\s+(\d+\.\d+)\s+(.+)} ) {
+ push @subtitles, [ $1, $2, "[$nr] $3" ];
} else {
die "unknown format: $_";
}