diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 09:18:22 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 09:18:22 +1300 |
commit | 050bc7f0f014ecae8acb931accc27c946271756e (patch) | |
tree | 77d9ab586783aba7a5d4d703fcc2eebfa503eed6 | |
parent | Bump version number (diff) | |
download | Music-Lyrics-LRC-050bc7f0f014ecae8acb931accc27c946271756e.tar.gz Music-Lyrics-LRC-050bc7f0f014ecae8acb931accc27c946271756e.zip |
Use correct fractional second separator
The LRC format uses a period for the fractional second separator, not a
colon.
-rw-r--r-- | lib/Music/Lyrics/LRC.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Music/Lyrics/LRC.pm b/lib/Music/Lyrics/LRC.pm index d4cca9c..10204d0 100644 --- a/lib/Music/Lyrics/LRC.pm +++ b/lib/Music/Lyrics/LRC.pm @@ -211,7 +211,7 @@ sub save { my %ts = %{ $self->msec_to_ts($msec) }; # Write the line to the file, counting the lines - $lines += printf {$fh} "[%02u:%02u:%02u]%s\n", + $lines += printf {$fh} "[%02u:%02u.%02u]%s\n", @ts{qw(min sec csec)}, $lyric->{text} or die "Failed lyric write: $ERRNO\n"; } |