mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-03-11 17:45:30 +00:00
Fix an issue that SRT time format is incorrect
This commit is contained in:
parent
0990f82bf9
commit
169ea2aad4
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ function toSubsTime(str, srtFormat) {
|
||||||
sx = sx.toFixed(msLen).split('.');
|
sx = sx.toFixed(msLen).split('.');
|
||||||
|
|
||||||
|
|
||||||
n.unshift(padTimeNum('.', sx[1], msLen));
|
n.unshift(padTimeNum((srtFormat ? ',' : '.'), sx[1], msLen));
|
||||||
sx = Number(sx[0]);
|
sx = Number(sx[0]);
|
||||||
|
|
||||||
n.unshift(padTimeNum(':', sx%60, 2));
|
n.unshift(padTimeNum(':', sx%60, 2));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue