Arieleg / mpv-copyTime

Copy the current time of the video to clipboard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Last digit off at times

Meowsod opened this issue · comments

commented

For example here, the video is at 00:02:36.320 but the script copies it as 00:02:36.319:
image

For example here, the video is at 00:02:36.320 but the script copies it as 00:02:36.319: image

fixed it by changing local milliseconds = math.floor((remainder - seconds) * 1000) to local milliseconds = math.floor((remainder - seconds) * 1001) in line 63

copyTime.txt

I had same issue, thanks @githubchan0