mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-01-11 20:10:20 +00:00
Merge pull request #51 from subdiox/master
Fix an issue that SRT time format is incorrect
This commit is contained in:
commit
0522abdded
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ function toSubsTime(str, srtFormat) {
|
|||
sx = sx.toFixed(msLen).split('.');
|
||||
|
||||
|
||||
n.unshift(padTimeNum('.', sx[1], msLen));
|
||||
n.unshift(padTimeNum((srtFormat ? ',' : '.'), sx[1], msLen));
|
||||
sx = Number(sx[0]);
|
||||
|
||||
n.unshift(padTimeNum(':', sx%60, 2));
|
||||
|
|
|
|||
Loading…
Reference in a new issue